* [linux-stable-rc:linux-4.9.y 9862/9999] arch/powerpc/platforms/cell/spufs/file.c:2132:6: error: variable 'wbox_stat' set but not used
@ 2021-02-12 13:18 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-02-12 13:18 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3382 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.9.y
head: 5b75f3b7134077fa52eb3331e7d8b39ae6bcdf76
commit: 123a8d0b68ac0159e5ab4ecf61701bd9fb42c7f9 [9862/9999] powerpc/spufs: fix copy_to_user while atomic
config: powerpc-ps3_defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 7.5.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/stable/linux-stable-rc.git/commit/?id=123a8d0b68ac0159e5ab4ecf61701bd9fb42c7f9
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.9.y
git checkout 123a8d0b68ac0159e5ab4ecf61701bd9fb42c7f9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.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/platforms/cell/spufs/file.c: In function '__spufs_wbox_info_read':
>> arch/powerpc/platforms/cell/spufs/file.c:2132:6: error: variable 'wbox_stat' set but not used [-Werror=unused-but-set-variable]
u32 wbox_stat;
^~~~~~~~~
cc1: all warnings being treated as errors
vim +/wbox_stat +2132 arch/powerpc/platforms/cell/spufs/file.c
123a8d0b68ac01 Jeremy Kerr 2020-05-05 2126
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2127 static ssize_t __spufs_wbox_info_read(struct spu_context *ctx,
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2128 char __user *buf, size_t len, loff_t *pos)
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2129 {
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2130 int i, cnt;
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2131 u32 data[4];
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 @2132 u32 wbox_stat;
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2133
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2134 wbox_stat = ctx->csa.prob.mb_stat_R;
123a8d0b68ac01 Jeremy Kerr 2020-05-05 2135 cnt = spufs_wbox_info_cnt(ctx);
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2136 for (i = 0; i < cnt; i++) {
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2137 data[i] = ctx->csa.spu_mailbox_data[i];
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2138 }
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2139
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2140 return simple_read_from_buffer(buf, len, pos, &data,
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2141 cnt * sizeof(u32));
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2142 }
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2143
:::::: The code at line 2132 was first introduced by commit
:::::: 69a2f00ce5d3a19a70b36f08eaf9049677277710 [POWERPC] spufs: Implement /mbox_info, /ibox_info, and /wbox_info.
:::::: TO: Dwayne Grant McConnell <decimal@us.ibm.com>
:::::: CC: Paul Mackerras <paulus@samba.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 14172 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-12 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-12 13:18 [linux-stable-rc:linux-4.9.y 9862/9999] arch/powerpc/platforms/cell/spufs/file.c:2132:6: error: variable 'wbox_stat' set but not used kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.