tree:
https://github.com/linuxppc/linux next-test
head: 08b8bb849948ff5e2305d1115ce8bbdd55364a70
commit: 5f76364326a841f50b29e9fd340baa32182308b3 [166/176] powerpc sstep: Add tests for
prefixed integer load/stores
config: powerpc-allmodconfig (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
git checkout 5f76364326a841f50b29e9fd340baa32182308b3
# 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 >>):
In file included from arch/powerpc/include/asm/uprobes.h:14,
from include/linux/uprobes.h:49,
from include/linux/mm_types.h:14,
from include/linux/mmzone.h:21,
from arch/powerpc/include/asm/pgtable.h:7,
from include/linux/pgtable.h:6,
from arch/powerpc/include/asm/kup.h:42,
from arch/powerpc/include/asm/uaccess.h:9,
from include/linux/uaccess.h:11,
from include/linux/sched/task.h:11,
from include/linux/sched/signal.h:9,
from include/linux/ptrace.h:7,
from arch/powerpc/lib/test_emulate_step.c:10:
arch/powerpc/lib/test_emulate_step.c: In function 'test_pld':
>> arch/powerpc/include/asm/ppc-opcode.h:277:22: error: called object is not a
function or function pointer
277 | #define ___PPC_RA(a) (((a) & 0x1f) << 16)
| ^
arch/powerpc/include/asm/inst.h:31:74: note: in definition of macro
'ppc_inst_prefix'
31 | #define ppc_inst_prefix(x, y) ((struct ppc_inst){ .val = (x), .suffix = (y)
})
| ^
arch/powerpc/lib/test_emulate_step.c:24:34: note: in expansion of macro
'___PPC_RA'
24 | PPC_INST_PLD | ___PPC_RT(r) | ___PPC_RA(base) IMM_L(i))
| ^~~~~~~~~
arch/powerpc/lib/test_emulate_step.c:100:32: note: in expansion of macro
'TEST_PLD'
100 | stepped = emulate_step(®s, TEST_PLD(5, 3, 0, 0));
| ^~~~~~~~
arch/powerpc/lib/test_emulate_step.c: In function 'test_plwz':
>> arch/powerpc/lib/test_emulate_step.c:28:4: error: 'PPC_INST_LWZ'
undeclared (first use in this function); did you mean 'PPC_INST_LSWI'?
28 | PPC_INST_LWZ | ___PPC_RT(r) | ___PPC_RA(base) | IMM_L(i))
| ^~~~~~~~~~~~
arch/powerpc/include/asm/inst.h:31:74: note: in definition of macro
'ppc_inst_prefix'
31 | #define ppc_inst_prefix(x, y) ((struct ppc_inst){ .val = (x), .suffix = (y)
})
| ^
arch/powerpc/lib/test_emulate_step.c:142:32: note: in expansion of macro
'TEST_PLWZ'
142 | stepped = emulate_step(®s, TEST_PLWZ(5, 3, 0, 0));
| ^~~~~~~~~
arch/powerpc/lib/test_emulate_step.c:28:4: note: each undeclared identifier is
reported only once for each function it appears in
28 | PPC_INST_LWZ | ___PPC_RT(r) | ___PPC_RA(base) | IMM_L(i))
| ^~~~~~~~~~~~
arch/powerpc/include/asm/inst.h:31:74: note: in definition of macro
'ppc_inst_prefix'
31 | #define ppc_inst_prefix(x, y) ((struct ppc_inst){ .val = (x), .suffix = (y)
})
| ^
arch/powerpc/lib/test_emulate_step.c:142:32: note: in expansion of macro
'TEST_PLWZ'
142 | stepped = emulate_step(®s, TEST_PLWZ(5, 3, 0, 0));
| ^~~~~~~~~