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: 1264121 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id 6FCFB3FC71 for ; Wed, 1 Aug 2012 12:37:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F49F9E82F for ; Wed, 1 Aug 2012 05:37:18 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-gg0-f177.google.com (mail-gg0-f177.google.com [209.85.161.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 9E8D59E7D5 for ; Wed, 1 Aug 2012 04:47:17 -0700 (PDT) Received: by ggcs5 with SMTP id s5so7365374ggc.36 for ; Wed, 01 Aug 2012 04:47:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=CZMbpAtrXb8QOfnAoBHI8IUyuTUpcaCVFmwgM1VJEr8=; b=SeWdxBpnFkGFm+YVaHNWMqQcZuhr2LkpqSjABtDtIvg/dIG4F9cBTWFAKcgz6SUBAf 4Q7JzBE+LnVAc9RKqg4lBPeuh+voFkbgOokbv56iAJim9JRNNlB+bxn2wBetn0ZP2+Lr NuH6q6QQm2XG/AeNmm+4k73hhy+pv9leSId9OKITkW0IK8kPcjfqCenrR0ED0wdjNN47 /lHn786eCCe1/ig7mlRPBK3d5EoIsVz/7m39yAz2VvHRG38bQvqfDxWQGdHIaNm1oXOn EVVhsk5PaxC9NzVDXVcGiJ4yOgGE/THDGOK888iveUzZAS87kXgS6tIumR9m75DKCIYL j3Ig== 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 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: ALoCoQm/gFI6LbHEZ3ZixE1RQyPzkfVq/fLTlQQBCRKjond5V84gxDNBz4cJu0iXg8KrmEK4XOzp X-Mailman-Approved-At: Wed, 01 Aug 2012 05:34:46 -0700 Cc: sachin.kamat@linaro.org, patches@linaro.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org Errors-To: dri-devel-bounces+patchwork-dri-devel=patchwork.kernel.org@lists.freedesktop.org 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;