[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20080712194520.2d45ea67@linux360.ro>
Date: Sat, 12 Jul 2008 19:45:20 +0300
From: Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>
To: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
Cc: LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Tom Zanussi <tzanussi@...il.com>,
Jens Axboe <jens.axboe@...cle.com>,
kosaki.motohiro@...fujitsu.com
Subject: Re: [mmotm] smp.c: fix build error
On Sat, 12 Jul 2008 20:11:02 +0900
KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com> wrote:
> Now, init_call_single_data() is static function.
> then redundant declaration cause build error as below.
>
> kernel/smp.c:36: error: static declaration of
> ‘init_call_single_data’ follows non-static declaration
> include/linux/smp.h:77: error: previous declaration of
> ‘init_call_single_data’ was here kernel/smp.c:47: warning:
> initialization from incompatible pointer type make[1]: ***
> [kernel/smp.o] error 1
>
> Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@...fujitsu.com>
> CC: Andrew Morton <akpm@...ux-foundation.org>
> Cc: Eduard - Gabriel Munteanu <eduard.munteanu@...ux360.ro>
> Cc: Tom Zanussi <tzanussi@...il.com>
> Cc: Jens Axboe <jens.axboe@...cle.com>
>
> ---
> include/linux/smp.h | 5 -----
> 1 file changed, 5 deletions(-)
>
> Index: b/include/linux/smp.h
> ===================================================================
> --- a/include/linux/smp.h
> +++ b/include/linux/smp.h
> @@ -74,15 +74,10 @@ void __smp_call_function_single(int cpui
> #ifdef CONFIG_USE_GENERIC_SMP_HELPERS
> void generic_smp_call_function_single_interrupt(void);
> void generic_smp_call_function_interrupt(void);
> -void init_call_single_data(void);
> void ipi_call_lock(void);
> void ipi_call_unlock(void);
> void ipi_call_lock_irq(void);
> void ipi_call_unlock_irq(void);
> -#else
> -static inline void init_call_single_data(void)
> -{
> -}
> #endif
>
> /*
Thanks. Though IIRC I had already removed these things. They must've
returned there while adding things to the patch stack.
Eduard
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists