From patchwork Sat Nov 15 23:53:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Emilio_L=C3=B3pez?= X-Patchwork-Id: 5312331 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id C06AC9F440 for ; Sat, 15 Nov 2014 23:57:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 05A24201DD for ; Sat, 15 Nov 2014 23:57:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 11B52201BC for ; Sat, 15 Nov 2014 23:57:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XpnB2-0006Ce-Nb; Sat, 15 Nov 2014 23:54:48 +0000 Received: from yotta.elopez.com.ar ([2a00:1768:1004:d00d:c0de:4:f00d:cafe]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XpnB0-0006Bx-Eo for linux-arm-kernel@lists.infradead.org; Sat, 15 Nov 2014 23:54:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=elopez.com.ar; s=mail; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-Id:Date:Subject:Cc:To:From; bh=L1t4Ceqy8Qbn5d14YQ7u3w8MKU7d0EzsM7Wr84betBI=; b=FewZeeGOAQJAisHkkTqw8d5RXUg3okBtxhru9h2CQgZwTOXy5gG6BIFgSLtoqvv3XN60rw63U0Keo2VFXWdpQACY4Dd19NWngSSw6GhklbdJxnKa6KTLRPH13ZQGEPdyvFhz9ZK5nkQV3jH37zGlE81/AnFLfvn8su+UclK3J7DlWDkc2PLY+uSNaDgufti1IMQnhm163AevGijnHJESewzHnlv/jHlG44X1Zo1bWUhV+LetdvrKAp1zizSi1zf+fi5hT2bgovKbpXzmh3mdxWsQ/OIRV7pKeaN7PhkUsYingDrWsgKoAxVoBWDOk+qafuNexIeNNF7/5KtuiB0mXA==; Received: from 201-212-132-154.cab.prima.net.ar ([201.212.132.154] helo=desktop.lan) by yotta.elopez.com.ar with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA256:128) (Exim 4.84) id 1XpnAb-0000ug-6R; Sat, 15 Nov 2014 20:54:21 -0300 From: =?UTF-8?q?Emilio=20L=C3=B3pez?= To: Maxime Ripard Subject: [PATCH RESEND] ARM: sunxi: make sun6i SMP ops static Date: Sat, 15 Nov 2014 20:53:38 -0300 Message-Id: <1416095618-2900-1-git-send-email-emilio@elopez.com.ar> X-Mailer: git-send-email 2.1.3 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141115_155446_786755_F3932BA9 X-CRM114-Status: UNSURE ( 7.68 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.1 (/) Cc: =?UTF-8?q?Emilio=20L=C3=B3pez?= , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The sun6i SMP ops are currently not marked as static, as reported by sparse. Let's mark it as such. Signed-off-by: Emilio López --- Here's an oldish patch that never made it to mainline. I rediscovered it today while I was cleaning up stuff and running a sparse build of -rc4. Cheers! Emilio arch/arm/mach-sunxi/platsmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-sunxi/platsmp.c b/arch/arm/mach-sunxi/platsmp.c index c53077b..e44d028 100644 --- a/arch/arm/mach-sunxi/platsmp.c +++ b/arch/arm/mach-sunxi/platsmp.c @@ -116,7 +116,7 @@ static int sun6i_smp_boot_secondary(unsigned int cpu, return 0; } -struct smp_operations sun6i_smp_ops __initdata = { +static struct smp_operations sun6i_smp_ops __initdata = { .smp_prepare_cpus = sun6i_smp_prepare_cpus, .smp_boot_secondary = sun6i_smp_boot_secondary, };