Commit 83c65b19 authored by Richard Henderson's avatar Richard Henderson

Fix CONFIG_MODULES=n build: only call extable_init if CONFIG_MODULES.

parent 65066418
...@@ -60,10 +60,8 @@ extern char *linux_banner; ...@@ -60,10 +60,8 @@ extern char *linux_banner;
static int init(void *); static int init(void *);
extern void init_IRQ(void); extern void init_IRQ(void);
extern void init_modules(void);
extern void sock_init(void); extern void sock_init(void);
extern void fork_init(unsigned long); extern void fork_init(unsigned long);
extern void extable_init(void);
extern void mca_init(void); extern void mca_init(void);
extern void sbus_init(void); extern void sbus_init(void);
extern void sysctl_init(void); extern void sysctl_init(void);
...@@ -75,6 +73,10 @@ extern void radix_tree_init(void); ...@@ -75,6 +73,10 @@ extern void radix_tree_init(void);
extern void free_initmem(void); extern void free_initmem(void);
extern void populate_rootfs(void); extern void populate_rootfs(void);
#ifdef CONFIG_MODULES
extern void extable_init(void);
#endif
#ifdef CONFIG_TC #ifdef CONFIG_TC
extern void tc_init(void); extern void tc_init(void);
#endif #endif
...@@ -395,7 +397,9 @@ asmlinkage void __init start_kernel(void) ...@@ -395,7 +397,9 @@ asmlinkage void __init start_kernel(void)
printk("Kernel command line: %s\n", saved_command_line); printk("Kernel command line: %s\n", saved_command_line);
parse_options(command_line); parse_options(command_line);
trap_init(); trap_init();
#ifdef CONFIG_MODULES
extable_init(); extable_init();
#endif
rcu_init(); rcu_init();
init_IRQ(); init_IRQ();
sched_init(); sched_init();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment