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: 12921 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E9E8023DFE for ; Mon, 19 Nov 2012 11:05:04 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id 91E60A18754 for ; Mon, 19 Nov 2012 11:05:04 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so820611iag.11 for ; Mon, 19 Nov 2012 03:05:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=/mOoVB8iRoYRRbm353HuQWY0HjO+8+KZ2k4gNar4RtI=; b=Uw48GAkCgX74mJAn5Ui8/KYgesJO7giLSba6zVc6dLZC1Jov/NU5DwvXhkQlHuOC2a prVf34Nlyvb4H+aU2gxJCMX2u+oTJHtcjDD954jnvezX6YZm9D0p9sSaHnA+f9YOXHGQ CXWVW+b09lk+DgBXonF6Pa+tMDzHsFFA5ABNonO3zcdjnA6809M+ZVSUIzEKcIXiIOTG S5L+huZYH/MCGVfDvbIinaEavmwhbrp7rQnjAHSqN1f6gqDYHZKXfCWlv+QTDLEjcMF/ 8Ioz3NIzIUM680ntHbPyz97D0G7SrdPQSDipQz3DEqI1zOoYrujz/XsiRhwGnSIux5hg VuFA== Received: by 10.50.213.69 with SMTP id nq5mr6099925igc.70.1353323104032; Mon, 19 Nov 2012 03:05:04 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp142419igt; Mon, 19 Nov 2012 03:05:03 -0800 (PST) Received: by 10.68.212.106 with SMTP id nj10mr37979325pbc.101.1353323103213; Mon, 19 Nov 2012 03:05:03 -0800 (PST) Received: from mail-da0-f43.google.com (mail-da0-f43.google.com [209.85.210.43]) by mx.google.com with ESMTPS id uq10si13383119pbc.47.2012.11.19.03.05.03 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 03:05:03 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.43 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.210.43; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.43 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-da0-f43.google.com with SMTP id u36so2261388dak.30 for ; Mon, 19 Nov 2012 03:05:02 -0800 (PST) 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 Cc: linux@arm.linux.org.uk, patches@linaro.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: ALoCoQndLG8L1HtvPAJ+zHWfd/tnfjslqiBtW8jxdMGWz75gEXfkjcKe9DLsq105J1LHC2cXurU4 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, };