Details
Description
compile error:
libcfs/libcfs/libcfs_cpu.c:1162:7: error: 'CPU_ONLINE_FROZEN' undeclared
libcfs/libcfs/libcfs_cpu.c:1194:2: error: implicit declaration of function 'unregister_hotcpu_notifier';
person analysis:
starting from Linux kernel 4.10, support for 'HAVE_HOTPLUG_STATE_MACHINE' related functions has been removed. However, when compiling libcfs/libcfs/libcfs_cpu. c, the old functions are still used:
void cfs_cpu_fini(void) { if (!IS_ERR_OR_NULL(cfs_cpt_tab)) cfs_cpt_table_free(cfs_cpt_tab);#ifdef CONFIG_HOTPLUG_CPU #ifdef HAVE_HOTPLUG_STATE_MACHINE if (cstorpfs_cpu_online > 0) cpuhp_remove_state_nocalls(cstorpfs_cpu_online); cpuhp_remove_state_nocalls(CPUHP_CSTORPFS_CFS_DEAD); #else unregister_hotcpu_notifier(&cfs_cpu_notifier); #endif /* !HAVE_HOTPLUG_STATE_MACHINE */ #endif /* CONFIG_HOTPLUG_CPU */ }