Description of problem: kernel-3.6.0-0.rc0.git1.2.fc18 fails to build on PPC (32bit): Checking prom_init.o symbol 'strncmp' Checking prom_init.o symbol 'strstr' In file included from arch/powerpc/kernel/head_32.S:882:0: arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:70:0: warning: "MTMSR_EERI" redefined [enabled by default] In file included from arch/powerpc/kernel/head_32.S:32:0: /builddir/build/BUILD/kernel-3.5.fc18/linux-3.6.0-0.rc0.git1.2.fc18.ppc/arch/powerpc/include/asm/ppc_asm.h:490:0: note: this is the location of the previous definition arch/powerpc/kernel/../kvm/book3s_rmhandlers.S: Assembler messages: arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:186: Error: bad expression arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:186: Error: missing ')' arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:186: Error: syntax error; found `r', expected `,' arch/powerpc/kernel/../kvm/book3s_rmhandlers.S:186: Error: junk at end of line: `r9)' arch/powerpc/kernel/../kvm/book3s_segment.S:141: Error: bad expression arch/powerpc/kernel/../kvm/book3s_segment.S:141: Error: missing ')' arch/powerpc/kernel/../kvm/book3s_segment.S:141: Error: syntax error; found `r', expected `,' arch/powerpc/kernel/../kvm/book3s_segment.S:141: Error: junk at end of line: `r6)' make[1]: *** [arch/powerpc/kernel/head_32.o] Error 1 make: *** [arch/powerpc/kernel] Error 2 Steps to Reproduce: 1. ppc-koji build --scratch f18 kernel-3.6.0-0.rc0.git1.2.fc18.src.rpm 2. 3. Actual results: http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=656110
This was fixed with: commit ad36cb0d1d3e2b7f161cd33932433f9349cade1e Author: Alexander Graf <agraf> Date: Mon Jul 30 12:32:59 2012 +0000 powerpc/kvm/book3s_32: Fix MTMSR_EERI macro Commit b38c77d82e4 moved the MTMSR_EERI macro from the KVM code to generic ppc_asm.h code. However, while adding it in the headers for the ppc32 case, it missed out to remove the former definition in the KVM code. This patch fixes compilation on server type PPC32 targets with CONFIG_KVM enabled. Signed-off-by: Alexander Graf <agraf> Signed-off-by: Benjamin Herrenschmidt <benh.org> which is in 3.6-rc1. Already in rawhide.