From patchwork Wed Sep 7 11:26:45 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Baoyou Xie X-Patchwork-Id: 75639 Delivered-To: patch@linaro.org Received: by 10.140.106.11 with SMTP id d11csp274317qgf; Wed, 7 Sep 2016 04:27:03 -0700 (PDT) X-Received: by 10.66.72.40 with SMTP id a8mr82359878pav.15.1473247623680; Wed, 07 Sep 2016 04:27:03 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf1si17771150pab.44.2016.09.07.04.27.02; Wed, 07 Sep 2016 04:27:03 -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 S1161143AbcIGL1A (ORCPT + 27 others); Wed, 7 Sep 2016 07:27:00 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:33668 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752752AbcIGL07 (ORCPT ); Wed, 7 Sep 2016 07:26:59 -0400 Received: by mail-pf0-f182.google.com with SMTP id g202so5942003pfb.0 for ; Wed, 07 Sep 2016 04:26:58 -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=fLP2wnfJq/Qy0qhtD8mU9/eQq/RKzilyO2TZVwCIaNA=; b=DKYnjFXaph7yjus6aAhhhf3uxYHc9Miv4ReZnWksOdAPDvrsLhffd2kGLAG32a5kCp oAbK2TNEB/iwhs717DPTdIz0AQ0lK5NyCZNYYiZ4hlD1WQpqegYE9FYyynkaFSwOOdyP bwN2vhFqKj4+n7/LdzTyGIT/EfZoPejpktoyA= 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=fLP2wnfJq/Qy0qhtD8mU9/eQq/RKzilyO2TZVwCIaNA=; b=VUCmq4SxDCPB9P9rzzKMRptKeNx81mV3prsHnnr4jtn73XSmpjNpVRYJH8qrfwLorm i3eMuuseXxm6B2dlkQVjl97wJNbg+cppvsRTN15RacTEdIjfyYULUTEZ8Uc71YukrV26 CbdJQNw1wzh9cx7yf4LiYt0SCYBsR/9LBT88WJ/i5nGckQqCGPQeliam9dd/w9ju79Jj 9pSlKFOeQFruGXV/V2/W8DI4Hgl/yJNF3NVm+TCh6FGFa9B8mjgYk0VmsmU8lH1kMm4s B1dZ+i+Fh+FUTEBDRoi3eME+HgZ+q3JAl2ajnB+/Or2IQ/AJsuxt7o4V+SroMj7XwQ+h YhaQ== X-Gm-Message-State: AE9vXwNQhmt5Vtytk5NViUu4B5GDmmn1THyozHVHaz/YGGebg0WXJAlLRpH0L6GdalM3QSKW X-Received: by 10.98.39.193 with SMTP id n184mr70992205pfn.164.1473247618474; Wed, 07 Sep 2016 04:26:58 -0700 (PDT) Received: from localhost.localdomain ([104.237.91.64]) by smtp.gmail.com with ESMTPSA id y3sm48173280pfy.36.2016.09.07.04.26.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 04:26:58 -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, baoyou.xie@linaro.org, xie.baoyou@zte.com.cn Subject: [PATCH] irqchip/gic: mark gic_init_physaddr() static Date: Wed, 7 Sep 2016 19:26:45 +0800 Message-Id: <1473247605-1368-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 building kernel with W=1: drivers/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 this function with '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) {