From patchwork Sat Oct 22 09:41:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 78779 Delivered-To: patch@linaro.org Received: by 10.140.97.247 with SMTP id m110csp1703261qge; Sat, 22 Oct 2016 02:43:29 -0700 (PDT) X-Received: by 10.99.215.5 with SMTP id d5mr8064435pgg.131.1477129409886; Sat, 22 Oct 2016 02:43:29 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d123si6235439pgc.184.2016.10.22.02.43.29; Sat, 22 Oct 2016 02:43:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964917AbcJVJnX (ORCPT + 27 others); Sat, 22 Oct 2016 05:43:23 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:33932 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964818AbcJVJnS (ORCPT ); Sat, 22 Oct 2016 05:43:18 -0400 Received: by mail-pf0-f182.google.com with SMTP id r16so70644142pfg.1 for ; Sat, 22 Oct 2016 02:43:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Mi/rn15SdeW4t1yjwM1EEj435PqCzTBqeIggfzSvJUw=; b=dmq+5r0l+NJYYohZe92NU3v3pHdRdqlbboTjjqg9rbBCRowc8jZQ1BIrZxhHZNPj4W gcwe5MLp2I4EyHt2q4XnGHp+W+FSfZ57DTytToJe+AJrpMTGzlIISe2WMVVifUYkXUb6 yQqz94ceihBLOaloaGuonRSHisc+Db1gA7t9s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Mi/rn15SdeW4t1yjwM1EEj435PqCzTBqeIggfzSvJUw=; b=JdX+gjIRumiG6LMJ1joiZppuOYLfIav3zxKPScjKQk1UzyI6Q3CJSL+MH1cSngxrw4 MAyR+k63y+LXJ8b87ujzcw92ACVPlanS7Hx079pPWnNjo7LDMPDJ5iRfAL5PjbYKO46c YgqVSwhr7ezSfUnYoloWFvlYO50rUSL1lvwrr7OS+hHX055qzgXAgn4I8T0xrhio4uus 3SxxQRsT/f4MpXnEcLJAOElt7w5PKRt4FaHehAYsh4R0KE5FveRJfpo55FCPcXXBVhU1 jjcswE884BEnRfGIwy2BOk5uyg5mvA/VAkJZ5KLlc15j/Bz5No/x1TVpWESUU1fnmEiA xRpA== X-Gm-Message-State: ABUngvdtPFtkxkyyw944mFWrqcI8/OdhgxFU4TSNBGFjXWXRRxpNdi6rYyRLHomFFsWqZPAA X-Received: by 10.99.181.10 with SMTP id y10mr8024480pge.161.1477129392318; Sat, 22 Oct 2016 02:43:12 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.92]) by smtp.gmail.com with ESMTPSA id g9sm10923953paw.40.2016.10.22.02.43.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 22 Oct 2016 02:43:11 -0700 (PDT) From: Baoyou Xie To: bskeggs@redhat.com, airlied@linux.ie, acourbot@nvidia.com, imirkin@alum.mit.edu, Julia.Lawall@lip6.fr, martin.peres@free.fr, rspliet@eclipso.eu, nouveau@karolherbst.de Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org, arnd@arndb.de, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn, han.fei@zte.com.cn, tang.qiang007@zte.com.cn Subject: [PATCH 06/17] drm/nouveau/gpio: mark symbol static where possible Date: Sat, 22 Oct 2016 17:41:47 +0800 Message-Id: <1477129318-29677-6-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477129318-29677-1-git-send-email-baoyou.xie@linaro.org> References: <1477129318-29677-1-git-send-email-baoyou.xie@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when building kernel with W=1: drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gk104.c:41:1: warning: no previous prototype for 'gk104_gpio_intr_mask' [-Wmissing-prototypes] In fact, this function is only used in the file in which it is declared and don't need a declaration, but can be made static. So this patch marks this function with 'static'. Signed-off-by: Baoyou Xie --- drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gk104.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gk104.c b/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gk104.c index 3f45afd1..2ead515 100644 --- a/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gk104.c +++ b/drivers/gpu/drm/nouveau/nvkm/subdev/gpio/gk104.c @@ -37,7 +37,7 @@ gk104_gpio_intr_stat(struct nvkm_gpio *gpio, u32 *hi, u32 *lo) nvkm_wr32(device, 0x00dc80, intr1); } -void +static void gk104_gpio_intr_mask(struct nvkm_gpio *gpio, u32 type, u32 mask, u32 data) { struct nvkm_device *device = gpio->subdev.device;