tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: 74cb9d74e6b6e93cae875cc04536f543eacb1704
commit: c3be26ccd0ade97c537a79b2a8467f1f6aaef0e4 [184/189] powerpc/sstep: Fix load-store
and update emulation
config: powerpc-mpc8540_ads_defconfig (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/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout c3be26ccd0ade97c537a79b2a8467f1f6aaef0e4
# 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 >>):
arch/powerpc/lib/sstep.c: In function 'analyse_instr':
> arch/powerpc/lib/sstep.c:2670:5: error: label
'unknown_opcode' used but not defined
2670 | goto unknown_opcode;
| ^~~~
arch/powerpc/lib/sstep.c:1168:31: error: variable 'rc' set but not used
[-Werror=unused-but-set-variable]
1168 | unsigned int opcode, ra, rb, rc, rd, spr, u;
| ^~
cc1: all warnings being treated as errors
--
arch/powerpc/lib/sstep.c: In function 'analyse_instr':
> arch/powerpc/lib/sstep.c:2670:5: error: label
'unknown_opcode' used but not defined
2670 | goto unknown_opcode;
| ^~~~
arch/powerpc/lib/sstep.c:1168:31: warning: variable 'rc' set but not used
[-Wunused-but-set-variable]
1168 | unsigned int opcode, ra, rb, rc, rd, spr, u;
| ^~
vim +/unknown_opcode +2670 arch/powerpc/lib/sstep.c
2657
2658 }
2659
2660 if (OP_IS_LOAD_STORE(op->type) && (op->type & UPDATE)) {
2661 switch (GETTYPE(op->type)) {
2662 case LOAD:
2663 if (ra == rd)
2664 goto unknown_opcode;
2665 fallthrough;
2666 case STORE:
2667 case LOAD_FP:
2668 case STORE_FP:
2669 if (ra == 0)
2670 goto unknown_opcode;
2671 }
2672 }
2673
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org