--- zzzz-none-000/linux-4.9.279/include/linux/cpu.h 2021-08-08 06:38:54.000000000 +0000 +++ puma7-arm-6591-750/linux-4.9.279/include/linux/cpu.h 2023-02-08 10:58:16.000000000 +0000 @@ -121,10 +121,14 @@ #define cpu_notifier(fn, pri) do { (void)(fn); } while (0) #define __cpu_notifier(fn, pri) do { (void)(fn); } while (0) +#ifndef MODULE +extern int register_cpu_notifier(struct notifier_block *nb); +#else static inline int register_cpu_notifier(struct notifier_block *nb) { return 0; } +#endif /* #ifndef MODULE */ static inline int __register_cpu_notifier(struct notifier_block *nb) {