From mboxrd@z Thu Jan 1 00:00:00 1970 From: u.kleine-koenig@pengutronix.de (Uwe =?iso-8859-1?Q?Kleine-K=F6nig?=) Date: Wed, 8 May 2013 09:49:20 +0200 Subject: [PATCH] ARM: imx: fix build breakage in hotplug.c In-Reply-To: <1367998391-12801-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <1367998391-12801-1-git-send-email-u.kleine-koenig@pengutronix.de> Message-ID: <20130508074920.GO23285@pengutronix.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hello, On Wed, May 08, 2013 at 09:33:11AM +0200, Uwe Kleine-K?nig wrote: > Since commit bca7a5a (ARM: cpu hotplug: remove majority of cache > flushing from platforms) hotplug.c fails to compile (e.g. with > imx_v6_v7_defconfig) with: > > arch/arm/mach-imx/common.h:100:29: warning: 'struct pt_regs' declared inside parameter list [enabled by default] > arch/arm/mach-imx/hotplug.c: In function 'imx_cpu_die': > arch/arm/mach-imx/hotplug.c:53:2: error: implicit declaration of function 'cpu_do_idle' [-Werror=implicit-function-declaration] > arch/arm/mach-imx/hotplug.c: In function 'imx_cpu_kill': > arch/arm/mach-imx/hotplug.c:58:26: error: 'jiffies' undeclared (first use in this function) > arch/arm/mach-imx/hotplug.c:58:26: note: each undeclared identifier is reported only once for each function it appears in > arch/arm/mach-imx/hotplug.c:58:2: error: implicit declaration of function 'msecs_to_jiffies' [-Werror=implicit-function-declaration] > arch/arm/mach-imx/hotplug.c:61:3: error: implicit declaration of function 'time_after' [-Werror=implicit-function-declaration] > cc1: some warnings being treated as errors > > Cc: Russell King > Signed-off-by: Uwe Kleine-K?nig > --- > Hello Russell, > > This patch applies on top of Linus' or your master branch. > > Best regards > Uwe > > arch/arm/mach-imx/common.h | 2 ++ > arch/arm/mach-imx/hotplug.c | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/arch/arm/mach-imx/common.h b/arch/arm/mach-imx/common.h > index 5bf4a97..5241d99b 100644 > --- a/arch/arm/mach-imx/common.h > +++ b/arch/arm/mach-imx/common.h > @@ -96,6 +96,8 @@ enum mx3_cpu_pwr_mode { > extern void mx3_cpu_lp_set(enum mx3_cpu_pwr_mode mode); > extern void imx_print_silicon_rev(const char *cpu, int srev); > > +struct pt_regs; > + > void avic_handle_irq(struct pt_regs *); > void tzic_handle_irq(struct pt_regs *); > > diff --git a/arch/arm/mach-imx/hotplug.c b/arch/arm/mach-imx/hotplug.c > index 5e91112..3daf1ed 100644 > --- a/arch/arm/mach-imx/hotplug.c > +++ b/arch/arm/mach-imx/hotplug.c > @@ -11,7 +11,9 @@ > */ > > #include > +#include > #include > +#include > > #include "common.h" I just noticed that this patch was already posted by Shawn last week[1]. [1] http://www.spinics.net/lists/arm-kernel/msg241316.html -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |