Hi Sasha,
I love your patch! Yet something to improve:
[auto build test ERROR on v5.7]
[cannot apply to wireless-drivers-next/master wireless-drivers/master bpf-next/master
bpf/master linus/master next-20200608]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see
https://stackoverflow.com/a/37406982]
url:
https://github.com/0day-ci/linux/commits/Sasha-Levin/drm-amdgpu-fix-and-c...
base: 3d77e6a8804abcc0504c904bd6e5cdf3a5cf8162
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-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
# 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(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
arch/powerpc/platforms/cell/spufs/file.c: In function '__spufs_wbox_info_read':
> arch/powerpc/platforms/cell/spufs/file.c:2066:6: error: variable
'wbox_stat' set but not used [-Werror=unused-but-set-variable]
2066 | u32
wbox_stat;
| ^~~~~~~~~
cc1: all warnings being treated as errors
vim +/wbox_stat +2066 arch/powerpc/platforms/cell/spufs/file.c
6b21b82a42d58a Jeremy Kerr 2020-06-08 2060
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2061 static ssize_t
__spufs_wbox_info_read(struct spu_context *ctx,
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2062 char __user *buf, size_t len,
loff_t *pos)
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2063 {
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2064 int i, cnt;
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2065 u32 data[4];
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 @2066 u32 wbox_stat;
69a2f00ce5d3a1 Dwayne Grant McConnell 2006-11-20 2067
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2068 wbox_stat =
ctx->csa.prob.mb_stat_R;
6b21b82a42d58a Jeremy Kerr 2020-06-08 2069 cnt = spufs_wbox_info_cnt(ctx);
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2070 for (i = 0; i < cnt; i++) {
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2071 data[i] =
ctx->csa.spu_mailbox_data[i];
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2072 }
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2073
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2074 return
simple_read_from_buffer(buf, len, pos, &data,
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2075 cnt * sizeof(u32));
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2076 }
bf1ab978be2318 Dwayne Grant McConnell 2006-11-23 2077
:::::: The code at line 2066 was first introduced by commit
:::::: 69a2f00ce5d3a19a70b36f08eaf9049677277710 [POWERPC] spufs: Implement /mbox_info,
/ibox_info, and /wbox_info.
:::::: TO: Dwayne Grant McConnell <decimal(a)us.ibm.com>
:::::: CC: Paul Mackerras <paulus(a)samba.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org