From patchwork Wed Nov 21 03:32:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 1777891 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork1.kernel.org (Postfix) with ESMTP id F10033FC23 for ; Wed, 21 Nov 2012 03:41:21 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1Tb19m-0007mC-NV; Wed, 21 Nov 2012 03:39:22 +0000 Received: from mail-da0-f49.google.com ([209.85.210.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Tb19i-0007lt-BT for linux-arm-kernel@lists.infradead.org; Wed, 21 Nov 2012 03:39:19 +0000 Received: by mail-da0-f49.google.com with SMTP id v40so1817569dad.36 for ; Tue, 20 Nov 2012 19:39:14 -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=sI5lKRiPY41A+1tDnbKIZys/J0BEsTNK+6dLtBUApgA=; b=DC6jJVNgCgjOQ6Tr32QjPRHoinEhOoHtRWOEfbx+6asHLAhpEmfACy5k+qq1FbgeBn FM9A/zDrd+BLXof6AdsjygUMt3d4yaCAJVwr3XOiUfpvt0Qi1pGDu2n9OxJHG6xNi5Lv LgbkB6tmjnaCy/Bbv3ZIHBV+1zRRMIIEWx+WD8MoQtdjfzrbqAmszfonC81uS8MXuDha 9P4lEUEa4A4OVVU08emsGGp4l9ZDOkutBFGjGFK5MeGk+T+c67AHg30l8x58/hE3ns+F ijDdrIcAnUZBxJL2/GCWpyfFAFWqC8LIvOX0m2/z1sIX06CcGjcKEewocqp9NsZVfW3F 31sA== Received: by 10.68.213.33 with SMTP id np1mr49359438pbc.64.1353469153979; Tue, 20 Nov 2012 19:39:13 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id nv2sm9123511pbc.44.2012.11.20.19.39.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 19:39:12 -0800 (PST) From: Tushar Behera To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] ARM: gic: Fix sparse warning Date: Wed, 21 Nov 2012 09:02:55 +0530 Message-Id: <1353468775-3894-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQnlHCukPPDewvGRiHMpzB692vjim/wkCTPO0JKDeH8tRCl1K1phHIPgpEz4DcQIEFxJWDeD X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121120_223918_523238_4294465C X-CRM114-Status: GOOD ( 13.93 ) 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.210.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, sshtylyov@mvista.com, 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 sparse 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 --- Changes for V2: * Updated commit message to specify that it was a sparse warning, not a compilation warning. 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, };