From patchwork Wed Aug 1 11:45:30 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 10440 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 911CD24050 for ; Wed, 1 Aug 2012 11:47:19 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 5A011A18F0A for ; Wed, 1 Aug 2012 11:47:19 +0000 (UTC) Received: by ghbz12 with SMTP id z12so7004844ghb.11 for ; Wed, 01 Aug 2012 04:47:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=CZMbpAtrXb8QOfnAoBHI8IUyuTUpcaCVFmwgM1VJEr8=; b=QkDz15UISzLJIUS3V2lztFJ31jAz9kWGr+RUJ5mfNyOmL6JLf9zj0qHHJxCXgko5/Y F7sGgvjtqsleBPyXYh//AtsFgMyOfhoqgfLrynLInTUq6Xl1tvKITEtoYNOVg1gDVtPO tt2Ey+KHzQCaMXlJu6+BfopebIPVoEFe900SAFRC6x5WeO3unFwJRYCeK9lUDBDbWOXK AUKu61dWAUhHLRCyLN62z++nQtFSt7BJfK/hA83Oue7bqnwpUdjyB3dDyLbfksotwVi/ mRmG9hPBpWO361HYc5KCDnxtQ4Hp6T8pKj4Ue5WwU6TGy7iLEGM92YmY8s0YX704Q1wA 3E8Q== Received: by 10.50.213.39 with SMTP id np7mr5015236igc.51.1343821638546; Wed, 01 Aug 2012 04:47:18 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.87.40 with SMTP id u8csp193999igz; Wed, 1 Aug 2012 04:47:18 -0700 (PDT) Received: by 10.236.197.42 with SMTP id s30mr16483007yhn.64.1343821637653; Wed, 01 Aug 2012 04:47:17 -0700 (PDT) Received: from mail-yw0-f50.google.com (mail-yw0-f50.google.com [209.85.213.50]) by mx.google.com with ESMTPS id c29si2841483yhe.143.2012.08.01.04.47.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Aug 2012 04:47:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.213.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.213.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.213.50 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by yhjj63 with SMTP id j63so8171431yhj.37 for ; Wed, 01 Aug 2012 04:47:17 -0700 (PDT) Received: by 10.66.83.65 with SMTP id o1mr39439075pay.17.1343821636813; Wed, 01 Aug 2012 04:47:16 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id ov6sm2457221pbb.41.2012.08.01.04.47.14 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 01 Aug 2012 04:47:16 -0700 (PDT) From: Sachin Kamat To: dri-devel@lists.freedesktop.org Cc: airlied@linux.ie, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/3] drm: Add missing static storage class specifiers in drm_proc.c file Date: Wed, 1 Aug 2012 17:15:30 +0530 Message-Id: <1343821532-30817-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQnu75fSGwI4cCvZKWJvfEpbdRRduZiZ3R877lyxhnUvAkKxFc5jMJpjJM0rqgsKmxzXcUUA Fixes the following sparse warning: drivers/gpu/drm/drm_proc.c:92:5: warning: symbol 'drm_proc_create_files' was not declared. Should it be static? drivers/gpu/drm/drm_proc.c:175:5: warning: symbol 'drm_proc_remove_files' was not declared. Should it be static? Signed-off-by: Sachin Kamat --- drivers/gpu/drm/drm_proc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/drm_proc.c b/drivers/gpu/drm/drm_proc.c index 371c695..da457b1 100644 --- a/drivers/gpu/drm/drm_proc.c +++ b/drivers/gpu/drm/drm_proc.c @@ -89,7 +89,7 @@ static const struct file_operations drm_proc_fops = { * Create a given set of proc files represented by an array of * gdm_proc_lists in the given root directory. */ -int drm_proc_create_files(struct drm_info_list *files, int count, +static int drm_proc_create_files(struct drm_info_list *files, int count, struct proc_dir_entry *root, struct drm_minor *minor) { struct drm_device *dev = minor->dev; @@ -172,7 +172,7 @@ int drm_proc_init(struct drm_minor *minor, int minor_id, return 0; } -int drm_proc_remove_files(struct drm_info_list *files, int count, +static int drm_proc_remove_files(struct drm_info_list *files, int count, struct drm_minor *minor) { struct list_head *pos, *q;