tree: https://gitee.com/openeuler/kernel.git OLK-5.10 head: f8ab733c9440022fd40f3c6d44e18f6ae930dc48 commit: a3cd8c3301c773a031f2dd37474734d1311ec9f6 [5114/30000] livepatch: Adapt livepatch-sample for stop_machine model config: x86_64-randconfig-014-20240420 (https://download.01.org/0day-ci/archive/20240420/202404200507.JbeBb2uA-lkp@i...) compiler: gcc-12 (Ubuntu 12.3.0-9ubuntu2) 12.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240420/202404200507.JbeBb2uA-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/202404200507.JbeBb2uA-lkp@intel.com/
All warnings (new ones prefixed by >>):
samples/livepatch/livepatch-sample.c:38:6: warning: no previous prototype for 'load_hook' [-Wmissing-prototypes]
38 | void load_hook(void) | ^~~~~~~~~
samples/livepatch/livepatch-sample.c:43:6: warning: no previous prototype for 'unload_hook' [-Wmissing-prototypes]
43 | void unload_hook(void) | ^~~~~~~~~~~
vim +/load_hook +38 samples/livepatch/livepatch-sample.c
36 37 #ifdef CONFIG_LIVEPATCH_STOP_MACHINE_CONSISTENCY
38 void load_hook(void)
39 { 40 pr_info("load_hook\n"); 41 } 42
43 void unload_hook(void)
44 { 45 pr_info("unload_hook\n"); 46 } 47