From patchwork Thu Aug 25 07:46:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 74663 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp708098qga; Thu, 25 Aug 2016 00:53:20 -0700 (PDT) X-Received: by 10.98.201.2 with SMTP id k2mr13555305pfg.95.1472111600106; Thu, 25 Aug 2016 00:53:20 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22si14232656pfi.209.2016.08.25.00.53.17; Thu, 25 Aug 2016 00:53:20 -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 S1758650AbcHYHxN (ORCPT + 27 others); Thu, 25 Aug 2016 03:53:13 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:36229 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758309AbcHYHxK (ORCPT ); Thu, 25 Aug 2016 03:53:10 -0400 Received: by mail-pa0-f48.google.com with SMTP id di2so14690618pad.3 for ; Thu, 25 Aug 2016 00:52:51 -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; bh=shlbCEqsG1SBr+pjG+Uy6dnvTVjEXH4PzvvPehCoF2k=; b=USr7a1mTrMUMedEaiUakPrFwZCf2ra6MZgKt79iRp64+x+/1cwQzFxKab1fkCDw5Wo +qiPj3pGO6EPkKxfVQmgeVkXaAmw+7zNW7K/sWp+x+dCFSvaSxrWY6DCQcepryGWwEq2 7WEGuV/eR8Dh6aZgWREZr7+rx2jHHhzrhRluA= 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; bh=shlbCEqsG1SBr+pjG+Uy6dnvTVjEXH4PzvvPehCoF2k=; b=k8xzilfbe71RKrLq1u2gpkQU55GBGYrlGe1wk03056krit4K/Wb+cnfFwjKDHV0/vD /nDjzje75UCgPhaKbE/hlCZFo7zrjbM1VorfAqDoJKKg+LjLFpghvk/O9f8SlerW1spj 5XWP7csSOiPkzg7wyFSKHvb5UNz10lTsmt9uU2dL8uYPURT9tomrZqevC5aDX46q5+qf 004jc6r41IkJ+OZttjwK9LG55FQZ/PIIoJXKZvfqN6T86hW9Jn4szrAu6QC69GEvmXIQ QLrby/m7jKTyV18CKqVgAvmFQ8abOjoIHIaXN5IR4ub62IxvLhpAuGbHPwqYS4klgMEO rcBw== X-Gm-Message-State: AE9vXwPwh+YPTEgcRyOoExfmPu2yE4n8TZ7KsaWdD67s54lw2Iil49IeieQBm6ziJN4gv66/ X-Received: by 10.66.221.229 with SMTP id qh5mr13572509pac.66.1472111216356; Thu, 25 Aug 2016 00:46:56 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.46]) by smtp.gmail.com with ESMTPSA id tr1sm18639743pab.19.2016.08.25.00.46.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Aug 2016 00:46:55 -0700 (PDT) From: Baoyou Xie To: tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com Cc: linux-kernel@vger.kernel.org, arnd@arndb.de, xie.baoyou@zte.com.cn, baoyou.xie@linaro.org Subject: [PATCH] irqchip: irq-gic: mark symbols static where possible Date: Thu, 25 Aug 2016 15:46:23 +0800 Message-Id: <1472111183-10867-1-git-send-email-baoyou.xie@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We get 1 warning when build kernel with W=1: irqchip/irq-gic.c:917:13: warning: no previous prototype for 'gic_init_physaddr' [-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 it 'static'. Signed-off-by: Baoyou Xie --- drivers/irqchip/irq-gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4 diff --git a/drivers/irqchip/irq-gic.c b/drivers/irqchip/irq-gic.c index c2cab57..6f8d322 100644 --- a/drivers/irqchip/irq-gic.c +++ b/drivers/irqchip/irq-gic.c @@ -914,7 +914,7 @@ unsigned long gic_get_sgir_physaddr(void) return gic_dist_physaddr + GIC_DIST_SOFTINT; } -void __init gic_init_physaddr(struct device_node *node) +static void __init gic_init_physaddr(struct device_node *node) { struct resource res; if (of_address_to_resource(node, 0, &res) == 0) {