.. | .. |
---|
49 | 49 | extern int unregister_restart_handler(struct notifier_block *); |
---|
50 | 50 | extern void do_kernel_restart(char *cmd); |
---|
51 | 51 | |
---|
52 | | -extern int register_pre_restart_handler(struct notifier_block *); |
---|
53 | | -extern int unregister_pre_restart_handler(struct notifier_block *); |
---|
| 52 | +#ifdef CONFIG_NO_GKI |
---|
| 53 | +extern int register_pre_restart_handler(struct notifier_block *nb); |
---|
| 54 | +extern int unregister_pre_restart_handler(struct notifier_block *nb); |
---|
54 | 55 | extern void do_kernel_pre_restart(char *cmd); |
---|
| 56 | +#else |
---|
| 57 | +static inline int register_pre_restart_handler(struct notifier_block *nb) |
---|
| 58 | +{ |
---|
| 59 | + return 0; |
---|
| 60 | +} |
---|
| 61 | + |
---|
| 62 | +static inline int unregister_pre_restart_handler(struct notifier_block *nb) |
---|
| 63 | +{ |
---|
| 64 | + return 0; |
---|
| 65 | +} |
---|
| 66 | + |
---|
| 67 | +static inline void do_kernel_pre_restart(char *cmd) |
---|
| 68 | +{ |
---|
| 69 | +} |
---|
| 70 | +#endif |
---|
55 | 71 | |
---|
56 | 72 | /* |
---|
57 | 73 | * Architecture-specific implementations of sys_reboot commands. |
---|