powerpc/traps: machine_check_generic() is only used on 32-bit
authorMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Aug 2017 06:39:23 +0000 (16:39 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 10 Aug 2017 13:31:31 +0000 (23:31 +1000)
Make it clear that the fallback version of machine_check_generic() is
only used on 32-bit configs.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/traps.c

index 1b1ae799e2f26cb351b3dfc033cfca7fec1a0c35..ef957c28bbc4163fc3d32694492b41ecc8318e21 100644 (file)
@@ -618,7 +618,7 @@ int machine_check_8xx(struct pt_regs *regs)
        return 0;
 #endif
 }
-#else
+#elif defined(CONFIG_PPC32)
 int machine_check_generic(struct pt_regs *regs)
 {
        unsigned long reason = regs->msr;