tree:
https://github.com/0day-ci/linux/commits/UPDATE-20200516-195607/Jordan-Ni...
head: dae797aa7e7f8d885f42df4c29129e8135bc7b1c
commit: 31f742bb39071e0fddf791ddb8dc998312c5bca0 [24/30] powerpc: Test prefixed code
patching
config: powerpc-defconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 31f742bb39071e0fddf791ddb8dc998312c5bca0
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day GCC_VERSION=9.3.0 make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
arch/powerpc/lib/code-patching.c: In function 'test_prefixed_patching':
> arch/powerpc/lib/code-patching.c:708:8: error: implicit
declaration of function 'ppc_inst_prefix'; did you mean 'ppc_inst_read'?
[-Werror=implicit-function-declaration]
708 | ppc_inst_prefix(OP_PREFIX
<< 26, 0x00000000),
| ^~~~~~~~~~~~~~~
| ppc_inst_read
> arch/powerpc/lib/code-patching.c:708:24: error:
'OP_PREFIX' undeclared (first use in this function); did you mean
'FSCR_PREFIX'?
708 | ppc_inst_prefix(OP_PREFIX << 26,
0x00000000),
| ^~~~~~~~~
| FSCR_PREFIX
arch/powerpc/lib/code-patching.c:708:24: note: each undeclared identifier is reported only
once for each function it appears in
cc1: all warnings being treated as errors
vim +708 arch/powerpc/lib/code-patching.c
699
700 #ifdef __powerpc64__
701 static void __init test_prefixed_patching(void)
702 {
703 extern unsigned int code_patching_test1[];
704 extern unsigned int code_patching_test1_expected[];
705 extern unsigned int end_code_patching_test1[];
706
707 __patch_instruction((struct ppc_inst *)code_patching_test1,
708 ppc_inst_prefix(OP_PREFIX << 26, 0x00000000),
709 (struct ppc_inst *)code_patching_test1);
710
711 check(!memcmp(code_patching_test1,
712 code_patching_test1_expected,
713 sizeof(unsigned int) *
714 (end_code_patching_test1 - code_patching_test1)));
715 }
716 #endif
717
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org