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: 13017 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 B7DDD23E13 for ; Wed, 21 Nov 2012 03:39:15 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 5F5BEA192E6 for ; Wed, 21 Nov 2012 03:39:15 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so9299140iej.11 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=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=sI5lKRiPY41A+1tDnbKIZys/J0BEsTNK+6dLtBUApgA=; b=TYwyRfR5vvzeajcQJ+hw0X25Rd3IHzmodmRjGXlVoUIN/VVQyYkpapOj0caY85R9/C Bx4CvUsdjajz09Pq0zzlURL6bDDPrfeA19/HG+H7ZLWlnG2kI9q2H1pEWdd/wtt6H2eO Cl/fni1x1r/nE3VTzibd/Qm889VTFMkRxFuM9VGXtoUOhARKqWs5FM7DpAR4mDohtlpM QeHi/IbFoWwspSr+5Wtfm+jGlhJ/FQgv+J3jCIqtIXwFEj3Z5tXYoZpE+dcsaPLQWhoK 7PKN1g3PmRjD8HQ2RANCJUaVmLawYdIBSNfXNiIj3U7hvMHzKBQFqSzxYoMVUOhQoKN5 Ph/w== Received: by 10.43.125.133 with SMTP id gs5mr16174395icc.54.1353469154824; Tue, 20 Nov 2012 19:39:14 -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 n20csp426971igt; Tue, 20 Nov 2012 19:39:14 -0800 (PST) Received: by 10.68.239.163 with SMTP id vt3mr55675022pbc.153.1353469154232; Tue, 20 Nov 2012 19:39:14 -0800 (PST) Received: from mail-pb0-f50.google.com (mail-pb0-f50.google.com [209.85.160.50]) by mx.google.com with ESMTPS id u7si20598351paz.182.2012.11.20.19.39.14 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 19:39:14 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.50 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.160.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.160.50 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-pb0-f50.google.com with SMTP id wz7so3487132pbc.37 for ; Tue, 20 Nov 2012 19:39:14 -0800 (PST) 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 Cc: linux@arm.linux.org.uk, sshtylyov@mvista.com, patches@linaro.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: ALoCoQk3mxRO5AUcJjxObF2vXjXq+Pf99ATbZQdkLTVpmJcwtgcpZf3JQo27AP166mdqznG/ydDI 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, };