From patchwork Tue Feb 23 14:08:42 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102697 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1850699lbl; Tue, 23 Feb 2016 06:09:24 -0800 (PST) X-Received: by 10.67.12.175 with SMTP id er15mr46163600pad.70.1456236564640; Tue, 23 Feb 2016 06:09:24 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qk3si47534849pac.28.2016.02.23.06.09.24; Tue, 23 Feb 2016 06:09:24 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752871AbcBWOJX (ORCPT + 30 others); Tue, 23 Feb 2016 09:09:23 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:55625 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751495AbcBWOJV (ORCPT ); Tue, 23 Feb 2016 09:09:21 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0LheYD-1aCc7u3OQT-00mqY2; Tue, 23 Feb 2016 15:08:51 +0100 From: Arnd Bergmann To: Dinh Nguyen Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] ARM: socfpga: hide unused functions Date: Tue, 23 Feb 2016 15:08:42 +0100 Message-Id: <1456236527-189885-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:W+12oBmvWCH0u9JUZrdBJ4wFlWEYBH4emXCwoFsvVfQfsdwKf+k /0kd1nU8vjjjZLCdMs0FDh3OCFqfZvRsZxVoYLQ3C3/obICYqRv1dPlCf2uuv7lrtS27HkB dqqI3HQvkg4/tyYcHpfR8udpr7SDdVKEcRfM0cKGchns0g4p3lcgdK3DBgBIdaGS2vR1xP0 cTs9csHd4er1nEiKpbTzg== X-UI-Out-Filterresults: notjunk:1; V01:K0:PqjXm/9UiyE=:Otr6JOzJRfOYjvBXrO22up VBt6evmgqh8iebOBua8FN7pQnMj0O58W8I9YtGokh/fBDaaNM7gvXvg9NJqrrbiQhGxb+/UIE ghKnSwDCsCq7JfzmBTz0O5kuAecCnNTmQHb2aoAxyLX9qjSdZUn3+2F4O15l0TzD0oivAq9Eg WHXHp8gmKTzgTmPx6OvYrE0lFwgihnL3ez9hNeAaS5nkmyGBUgemH4yW3NFSiAF1ufWcRy2YW b4y1TOT5ByYQGcXblS6MbvTj58a+Tr+udc6ISyZqA/LoygI78dzoAdMRA5k5UkSI6w1vv53FY wwWLLqS+j2dYBgXzpHw9dASQlY5bmvnpege4QMFusq3UsrvWTvxUxeHHaQ97tl6o0hXxaV1k3 hWdA2ysUSuq+lnGOp1Kyk3PH8hfuSMwT9cweAeuPOU3qQ2poaN/XWbjbrjzuQ67VCeB82zZsC cKTAF8YwYbH9mIgrgTUFdsKpSUu0NRPNJvq3SibjJOxWWy6HL4Y1NLkP7+s4t1YNNtU86waGS 4vX/fNLAvUJSL0ZmIqBWq0chpS53r6/uPJGsRDmgzp5a5YUFh/wFMFHpwxBrrZDc5oZ1PJRFb MZ45omBteVAC56dOsG2I30pvacrkbK10Vyy2nhgRrrG7qzu9TWFz3c7765cuwsZiVYLZCEaLy aykYT/dlMpsN8P9cFRZKNGkLlxknN7h5aYgSR2g81324fgpCWxK+5KDdT+I9r1ihBgxo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The cpu_die and cpu_kill callbacks are only used when CONFIG_HOTPLUG_CPU is enabled, otherwise we get a warning about them: arch/arm/mach-socfpga/platsmp.c:102:13: error: 'socfpga_cpu_die' defined but not used [-Werror=unused-function] arch/arm/mach-socfpga/platsmp.c:115:12: error: 'socfpga_cpu_kill' defined but not used [-Werror=unused-function] This adds the appropriate #ifdef. Signed-off-by: Arnd Bergmann --- arch/arm/mach-socfpga/platsmp.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.0 diff --git a/arch/arm/mach-socfpga/platsmp.c b/arch/arm/mach-socfpga/platsmp.c index cbb0a54df80a..07945748b571 100644 --- a/arch/arm/mach-socfpga/platsmp.c +++ b/arch/arm/mach-socfpga/platsmp.c @@ -94,6 +94,7 @@ static void __init socfpga_smp_prepare_cpus(unsigned int max_cpus) scu_enable(socfpga_scu_base_addr); } +#ifdef CONFIG_HOTPLUG_CPU /* * platform-specific code to shutdown a CPU * @@ -116,6 +117,7 @@ static int socfpga_cpu_kill(unsigned int cpu) { return 1; } +#endif static const struct smp_operations socfpga_smp_ops __initconst = { .smp_prepare_cpus = socfpga_smp_prepare_cpus,