[linux-next:master 3803/4327] samples/hw_breakpoint/data_breakpoint.c:73:2: error: call to undeclared function '__symbol_put'; ISO C99 and later do not support implicit function declarations

From: kernel test robot <hidden>
Date: 2023-07-25 17:22:48
Also in: linux-mm, oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   1e25dd7772483f477f79986d956028e9f47f990a
commit: 910e230d5f1bb72c54532e94fbb1705095c7bab6 [3803/4327] samples/hw_breakpoint: Fix kernel BUG 'invalid opcode: 0000'
config: i386-buildonly-randconfig-r004-20230725 (https://download.01.org/0day-ci/archive/20230726/202307260131.XswRCaVh-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230726/202307260131.XswRCaVh-lkp@intel.com/reproduce)

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 [off-list ref]
| Closes: https://lore.kernel.org/oe-kbuild-all/202307260131.XswRCaVh-lkp@intel.com/ (local)

All errors (new ones prefixed by >>):
quoted
samples/hw_breakpoint/data_breakpoint.c:73:2: error: call to undeclared function '__symbol_put'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
           __symbol_put(ksym_name);
           ^
   samples/hw_breakpoint/data_breakpoint.c:73:2: note: did you mean '__symbol_get'?
   include/linux/module.h:301:7: note: '__symbol_get' declared here
   void *__symbol_get(const char *symbol);
         ^
   1 error generated.


vim +/__symbol_put +73 samples/hw_breakpoint/data_breakpoint.c

    69	
    70	static void __exit hw_break_module_exit(void)
    71	{
    72		unregister_wide_hw_breakpoint(sample_hbp);
  > 73		__symbol_put(ksym_name);
    74		printk(KERN_INFO "HW Breakpoint for %s write uninstalled\n", ksym_name);
    75	}
    76	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help