sdei_watchdog: Fix compile error when PPC_WATCHDOG is disable on PowerPC
hulk inclusion category: bugfix bugzilla: 48046 CVE: NA --------------------------------- When I compile the kernel with CONFIG_PPC_WATCHDOG is disabled on PowerPC, I got the following compile error: In file included from kernel/hung_task.c:11:0: ./include/linux/nmi.h: In function ‘touch_nmi_watchdog’: ./include/linux/nmi.h:143:2: error: implicit declaration of function ‘arch_touch_nmi_watchdog’; did you mean ‘touch_nmi_watchdog’? [-Werror=implicit-function-declaration] arch_touch_nmi_watchdog(); ^~~~~~~~~~~~~~~~~~~~~~~ touch_nmi_watchdog It is because CONFIG_HARDLOCKUP_DETECTOR_PERF is still enabled in my situation. Fix it by excluding arch_touch_nmi_watchdog() only when CONFIG_PPC_WATCHDOG is disabled. Signed-off-by: NXiongfeng Wang <wangxiongfeng2@huawei.com> Reviewed-by: NHanjun Guo <guohanjun@huawei.com> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录