From: kernel test robot <lkp@intel.com>
To: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Michael Ellerman <mpe@ellerman.id.au>,
Michael Neuling <mikey@neuling.org>
Subject: arch/powerpc/xmon/xmon.c:1379:12: error: 'find_free_data_bpt' defined but not used
Date: Sat, 21 Nov 2020 15:45:49 +0800 [thread overview]
Message-ID: <202011211546.49ayj7T6-lkp@intel.com> (raw)
[-- 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 --]
reply other threads:[~2020-11-21 7:46 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202011211546.49ayj7T6-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mikey@neuling.org \
--cc=mpe@ellerman.id.au \
--cc=ravi.bangoria@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).