[linux-next] Build failure kernel/watchdog [powerpc]

Sachin Sant sachinp at linux.ibm.com
Wed Jul 27 18:43:13 AEST 2022


Linux-next (5.19.0-rc8-next-20220726) fails to build on powerpc with following error:

kernel/watchdog.c:597:20: error: static declaration of 'lockup_detector_reconfigure' follows non-static declaration
 static inline void lockup_detector_reconfigure(void)
                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from kernel/watchdog.c:17:
./include/linux/nmi.h:125:6: note: previous declaration of 'lockup_detector_reconfigure' was here
 void lockup_detector_reconfigure(void);
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~

CONFIG_SOFTLOCKUP_DETECTOR is not set in the config. Build is
successful with CONFIG_SOFTLOCKUP_DETECTOR=y

The code in question was changed by  following patch
commit 24a1260705b7c69e7be35cf40ccb1e886bc732cf
    watchdog: export lockup_detector_reconfigure

Thanks
- Sachin



More information about the Linuxppc-dev mailing list