[openeuler:OLK-5.10 3407/3407] kernel/watchdog_hld.c:502:12: warning: no previous prototype for function '__hardlockup_detector_perf_init'
Hi Wei, FYI, the error/warning still remains. tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: da8948fdddb84e5496272bab85973165594dd469 commit: 364de98eacea8dbfe4f926f62085aebf8534f403 [3407/3407] watchdog: Fix sleeping function called from atomic context config: x86_64-randconfig-005-20251212 (https://download.01.org/0day-ci/archive/20251213/202512130732.r3cU7k46-lkp@i...) compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 1335a05ab8bc8339ce24be3a9da89d8c3f4e0571) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251213/202512130732.r3cU7k46-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512130732.r3cU7k46-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from <built-in>:2: In file included from include/linux/compiler_types.h:69: include/linux/compiler-clang.h:34:9: warning: '__SANITIZE_ADDRESS__' macro redefined [-Wmacro-redefined] 34 | #define __SANITIZE_ADDRESS__ | ^ <built-in>:353:9: note: previous definition is here 353 | #define __SANITIZE_ADDRESS__ 1 | ^
kernel/watchdog_hld.c:502:12: warning: no previous prototype for function '__hardlockup_detector_perf_init' [-Wmissing-prototypes] 502 | int __init __hardlockup_detector_perf_init(void *not_used) | ^ kernel/watchdog_hld.c:502:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 502 | int __init __hardlockup_detector_perf_init(void *not_used) | ^ | static 2 warnings generated.
vim +/__hardlockup_detector_perf_init +502 kernel/watchdog_hld.c 501
502 int __init __hardlockup_detector_perf_init(void *not_used) 503 { 504 int ret = hardlockup_detector_event_create(); 505 506 if (ret) { 507 pr_info("Perf NMI watchdog permanently disabled\n"); 508 } else { 509 perf_event_release_kernel(this_cpu_read(watchdog_ev)); 510 this_cpu_write(watchdog_ev, NULL); 511 } 512 return ret; 513 } 514
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot