Messages in this thread | | | Date | Sat, 21 Nov 2020 15:45:49 +0800 | From | kernel test robot <> | Subject | arch/powerpc/xmon/xmon.c:1379:12: error: 'find_free_data_bpt' defined but not used |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: 27bba9c532a8d21050b94224ffd310ad0058c353 commit: 30df74d67d48949da87e3a5b57c381763e8fd526 powerpc/watchpoint/xmon: Support 2nd DAWR date: 6 months ago config: powerpc-randconfig-m031-20201121 (attached as .config) compiler: powerpc-linux-gcc (GCC) 9.3.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=30df74d67d48949da87e3a5b57c381763e8fd526 git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git git fetch --no-tags linus master git checkout 30df74d67d48949da87e3a5b57c381763e8fd526 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> arch/powerpc/xmon/xmon.c:1379:12: error: 'find_free_data_bpt' defined but not used [-Werror=unused-function] 1379 | static int find_free_data_bpt(void) | ^~~~~~~~~~~~~~~~~~ arch/powerpc/xmon/xmon.c: In function 'xmon_print_symbol': arch/powerpc/xmon/xmon.c:3633:14: error: variable 'name' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered] 3633 | const char *name = NULL; | ^~~~ arch/powerpc/xmon/xmon.c: In function 'show_tasks': arch/powerpc/xmon/xmon.c:3310:22: error: variable 'tsk' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered] 3310 | struct task_struct *tsk = NULL; | ^~~ arch/powerpc/xmon/xmon.c: In function 'xmon_core.constprop': arch/powerpc/xmon/xmon.c:487:6: error: variable 'cmd' might be clobbered by 'longjmp' or 'vfork' [-Werror=clobbered] 487 | int cmd = 0; | ^~~ cc1: all warnings being treated as errors
vim +/find_free_data_bpt +1379 arch/powerpc/xmon/xmon.c
1378 > 1379 static int find_free_data_bpt(void) 1380 { 1381 int i; 1382 1383 for (i = 0; i < nr_wp_slots(); i++) { 1384 if (!dabr[i].enabled) 1385 return i; 1386 } 1387 printf("Couldn't find free breakpoint register\n"); 1388 return -1; 1389 } 1390
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |