* [mmotm] smp.c: fix build error
@ 2008-07-12 11:11 KOSAKI Motohiro
2008-07-12 16:45 ` Eduard - Gabriel Munteanu
0 siblings, 1 reply; 2+ messages in thread
From: KOSAKI Motohiro @ 2008-07-12 11:11 UTC (permalink / raw)
To: LKML, Andrew Morton, Eduard - Gabriel Munteanu, Tom Zanussi,
Jens Axboe
Cc: kosaki.motohiro
Against: mmotm
Patch name: full-conversion-to-early_initcall-interface-remove-old-interface-fix-fix.patch
Applies after: full-conversion-to-early_initcall-interface-remove-old-interface-fix.patch
--------------------------------
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@jp.fujitsu.com>
CC: Andrew Morton <akpm@linux-foundation.org>
Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
Cc: Tom Zanussi <tzanussi@gmail.com>
Cc: Jens Axboe <jens.axboe@oracle.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
/*
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [mmotm] smp.c: fix build error
2008-07-12 11:11 [mmotm] smp.c: fix build error KOSAKI Motohiro
@ 2008-07-12 16:45 ` Eduard - Gabriel Munteanu
0 siblings, 0 replies; 2+ messages in thread
From: Eduard - Gabriel Munteanu @ 2008-07-12 16:45 UTC (permalink / raw)
To: KOSAKI Motohiro
Cc: LKML, Andrew Morton, Tom Zanussi, Jens Axboe, kosaki.motohiro
On Sat, 12 Jul 2008 20:11:02 +0900
KOSAKI Motohiro <kosaki.motohiro@jp.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@jp.fujitsu.com>
> CC: Andrew Morton <akpm@linux-foundation.org>
> Cc: Eduard - Gabriel Munteanu <eduard.munteanu@linux360.ro>
> Cc: Tom Zanussi <tzanussi@gmail.com>
> Cc: Jens Axboe <jens.axboe@oracle.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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-07-12 16:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-12 11:11 [mmotm] smp.c: fix build error KOSAKI Motohiro
2008-07-12 16:45 ` Eduard - Gabriel Munteanu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox