tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
pending-5.4
head: 40dd6d4f12e782e3a8c87ad889e1f6d5f8271e85
commit: ce1e22338af1363e1978ce1cb381a310cf165d51 [49/68] powerpc/bpf: Fix BPF_MOD when imm
== 1
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-stable pending-5.4
git checkout ce1e22338af1363e1978ce1cb381a310cf165d51
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir
ARCH=powerpc SHELL=/bin/bash 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 >>):
In file included from arch/powerpc/net/bpf_jit64.h:11,
from arch/powerpc/net/bpf_jit_comp64.c:19:
arch/powerpc/net/bpf_jit_comp64.c: In function 'bpf_jit_build_body':
> arch/powerpc/net/bpf_jit.h:32:9: error: expected expression
before 'do'
32 | do { if (d) { (d)[idx] = instr; } idx++; }
while (0)
| ^~
arch/powerpc/net/bpf_jit.h:33:33: note: in expansion of macro 'PLANT_INSTR'
33 | #define EMIT(instr) PLANT_INSTR(image, ctx->idx, instr)
| ^~~~~~~~~~~
arch/powerpc/net/bpf_jit_comp64.c:415:41: note: in expansion of macro 'EMIT'
415 | EMIT(PPC_LI(dst_reg, 0));
| ^~~~
arch/powerpc/net/bpf_jit.h:33:33: note: in expansion of macro 'PLANT_INSTR'
33 | #define EMIT(instr) PLANT_INSTR(image, ctx->idx, instr)
| ^~~~~~~~~~~
arch/powerpc/net/bpf_jit.h:41:33: note: in expansion of macro 'EMIT'
41 | #define PPC_ADDI(d, a, i) EMIT(PPC_INST_ADDI | ___PPC_RT(d) |
\
| ^~~~
arch/powerpc/net/bpf_jit.h:44:33: note: in expansion of macro 'PPC_ADDI'
44 | #define PPC_LI(r, i) PPC_ADDI(r, 0, i)
| ^~~~~~~~
arch/powerpc/net/bpf_jit_comp64.c:415:46: note: in expansion of macro 'PPC_LI'
415 | EMIT(PPC_LI(dst_reg, 0));
| ^~~~~~
vim +/do +32 arch/powerpc/net/bpf_jit.h
0ca87f05ba8bdc67 Matt Evans 2011-07-20 30
0ca87f05ba8bdc67 Matt Evans 2011-07-20 31 #define PLANT_INSTR(d, idx, instr)
\
0ca87f05ba8bdc67 Matt Evans 2011-07-20 @32 do { if (d) { (d)[idx] = instr; } idx++; }
while (0)
0ca87f05ba8bdc67 Matt Evans 2011-07-20 33 #define EMIT(instr) PLANT_INSTR(image,
ctx->idx, instr)
0ca87f05ba8bdc67 Matt Evans 2011-07-20 34
:::::: The code at line 32 was first introduced by commit
:::::: 0ca87f05ba8bdc6791c14878464efc901ad71e99 net: filter: BPF 'JIT' compiler
for PPC64
:::::: TO: Matt Evans <matt(a)ozlabs.org>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org