[PATCH] i386: Convert some functions to __init to avoid MODPOST warnings
o Some functions which should have been in init sections as they are called only once. Put them in init sections. Otherwise MODPOST generates warning as these functions are placed in .text and they end up accessing something in init sections. WARNING: vmlinux - Section mismatch: reference to .init.text:migration_init from .text between 'do_pre_smp_initcalls' (at offset 0xc01000d1) and 'run_init_process' Signed-off-by: Vivek Goyal <vgoyal@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Andi Kleen <ak@suse.de>
This commit is contained in:
Родитель
0e0be25d31
Коммит
88d20328cd
|
@ -495,7 +495,7 @@ static void set_mca_bus(int x) { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Overridden in paravirt.c if CONFIG_PARAVIRT */
|
/* Overridden in paravirt.c if CONFIG_PARAVIRT */
|
||||||
char * __attribute__((weak)) memory_setup(void)
|
char * __init __attribute__((weak)) memory_setup(void)
|
||||||
{
|
{
|
||||||
return machine_specific_memory_setup();
|
return machine_specific_memory_setup();
|
||||||
}
|
}
|
||||||
|
|
|
@ -695,7 +695,7 @@ static void __init do_basic_setup(void)
|
||||||
do_initcalls();
|
do_initcalls();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void do_pre_smp_initcalls(void)
|
static void __init do_pre_smp_initcalls(void)
|
||||||
{
|
{
|
||||||
extern int spawn_ksoftirqd(void);
|
extern int spawn_ksoftirqd(void);
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
|
|
Загрузка…
Ссылка в новой задаче