From patchwork Mon Nov 19 10:58:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 1764381 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id DA3AEDF264 for ; Mon, 19 Nov 2012 11:07:30 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TaPAA-00018w-4V; Mon, 19 Nov 2012 11:05:14 +0000 Received: from mail-pa0-f49.google.com ([209.85.220.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TaPA3-00014n-MB for linux-arm-kernel@lists.infradead.org; Mon, 19 Nov 2012 11:05:08 +0000 Received: by mail-pa0-f49.google.com with SMTP id bi1so460497pad.36 for ; Mon, 19 Nov 2012 03:05:02 -0800 (PST) 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=/mOoVB8iRoYRRbm353HuQWY0HjO+8+KZ2k4gNar4RtI=; b=M8Rkweebbp36JwtwfoFUSMNlTVPvpnBYpKdw4pEpkZsh53g2f7IIpMHO5uHsWfgvfP dREE+vfiGlQ1zmfHfJshfdik60ndj9koGmWzYrWg0KarF9BV3DuOk0GeddX9j2/3reff 97nueqloP0rmAasU7KZJor5W9r5CLLNaiTMVZva0sn1TdTrQ1GArIvGslClYktermUX3 3EXskuJz7ha+F2GEgzrDN51+k3ujcU+u4mUewK+beFdnjWnWaUGGpFtoDk6pODAWDoKc 1wYCSjUU8+GEaBWHKu6Jn4JAT97ktN306MzYzwGvHB2AY8oM1QvMFwoRGz5p1ktoVACM lc8Q== Received: by 10.68.230.105 with SMTP id sx9mr38093771pbc.44.1353323102925; Mon, 19 Nov 2012 03:05:02 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id oi2sm6053739pbb.62.2012.11.19.03.04.59 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 03:05:02 -0800 (PST) From: Tushar Behera To: linux-arm-kernel@lists.infradead.org Subject: [PATCH] ARM: gic: Fix sparse warning Date: Mon, 19 Nov 2012 16:28:56 +0530 Message-Id: <1353322736-2747-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQljF/363W3tzlyv2WIufJPF//dxIsO5mLb3aqS7/D+kq6yYic4lHm0OAFUI3HxXdvBXuRcn X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121119_060507_891769_4C3572D4 X-CRM114-Status: GOOD ( 13.80 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linux@arm.linux.org.uk, patches@linaro.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org gic_irq_domain_ops is only used in this file, so should be marked as static. Fixes following compilation warning. arch/arm/common/gic.c:638:29: warning: symbol 'gic_irq_domain_ops' was not declared. Should it be static? Signed-off-by: Tushar Behera --- arch/arm/common/gic.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index aa52699..4896dec 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c @@ -635,7 +635,7 @@ static int gic_irq_domain_xlate(struct irq_domain *d, return 0; } -const struct irq_domain_ops gic_irq_domain_ops = { +static const struct irq_domain_ops gic_irq_domain_ops = { .map = gic_irq_domain_map, .xlate = gic_irq_domain_xlate, };