* arch/powerpc/xmon/xmon.c:1379:12: error: 'find_free_data_bpt' defined but not used
@ 2020-11-21 7:45 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-11-21 7:45 UTC (permalink / raw)
To: Ravi Bangoria; +Cc: kbuild-all, linux-kernel, Michael Ellerman, Michael Neuling
[-- Attachment #1: Type: text/plain, Size: 2578 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 28884 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-11-21 7:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-21 7:45 arch/powerpc/xmon/xmon.c:1379:12: error: 'find_free_data_bpt' defined but not used kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).