Thread (2 messages) flat view 2 messages, 2 authors, 2021-08-11

Re: [powerpc:next-test 60/60] arch/powerpc/kernel/misc_32.S:240: Error: unrecognized opcode: `emit_warn_entry'

From: Christophe Leroy <hidden>
Date: 2021-08-11 05:56:46
Also in: oe-kbuild-all
Subsystem: linux for powerpc (32-bit and 64-bit), the rest · Maintainers: Madhavan Srinivasan, Linus Torvalds


Le 10/08/2021 à 20:10, kernel test robot a écrit :
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git next-test
head:   5e3aa4531ecc7febbfa18218145c903dab17e651
commit: 5e3aa4531ecc7febbfa18218145c903dab17e651 [60/60] powerpc/bug: Provide better flexibility to WARN_ON/__WARN_FLAGS() with asm goto
config: powerpc64-buildonly-randconfig-r001-20210810 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 10.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/powerpc/linux.git/commit/?id=5e3aa4531ecc7febbfa18218145c903dab17e651
         git remote add powerpc https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git
         git fetch --no-tags powerpc next-test
         git checkout 5e3aa4531ecc7febbfa18218145c903dab17e651
         # save the attached .config to linux build tree
         mkdir build_dir
         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.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 <redacted>

All errors (new ones prefixed by >>):

    arch/powerpc/kernel/misc_32.S: Assembler messages:
quoted
quoted
arch/powerpc/kernel/misc_32.S:240: Error: unrecognized opcode: `emit_warn_entry'
We are missing stubs when CONFIG_BUG is not selected.

The following show fix it:
diff --git a/arch/powerpc/include/asm/bug.h b/arch/powerpc/include/asm/bug.h
index f36b872cb571..1ee0f22313ee 100644
--- a/arch/powerpc/include/asm/bug.h
+++ b/arch/powerpc/include/asm/bug.h
@@ -137,8 +137,11 @@ __label_warn_on:						\
  #ifdef __ASSEMBLY__
  .macro EMIT_BUG_ENTRY addr,file,line,flags
  .endm
+.macro EMIT_WARN_ENTRY addr,file,line,flags
+.endm
  #else /* !__ASSEMBLY__ */
  #define _EMIT_BUG_ENTRY
+#define _EMIT_WARN_ENTRY
  #endif
  #endif /* CONFIG_BUG */
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help