]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix build warning on 32-bit PPC
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 23 Dec 2016 03:06:53 +0000 (21:06 -0600)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 26 Dec 2016 00:12:20 +0000 (16:12 -0800)
commitc046e0034c61f10b16d016fb013ac1004622fc41
treed029362dda3867b59c44480a5ac58d1d0d7a0f16
parentef91a453cc73e3fe5bfc4b16a6334cae08294336
powerpc: Fix build warning on 32-bit PPC

I am getting the following warning when I build kernel 4.9-git on my
PowerBook G4 with a 32-bit PPC processor:

    AS      arch/powerpc/kernel/misc_32.o
  arch/powerpc/kernel/misc_32.S:299:7: warning: "CONFIG_FSL_BOOKE" is not defined [-Wundef]

This problem is evident after commit b4b1cd140c9c ("kbuild: prevent
lib-ksyms.o rebuilds"); however, this change in kbuild only exposes an
error that has been in the code since 2005 when this source file was
created.  That was with commit 88f1a9cb068d ("powerpc: Introduce
entry_{32,64}.S, misc_{32,64}.S, systbl.S").

The offending line does not make a lot of sense.  This error does not
seem to cause any errors in the executable, thus I am not recommending
that it be applied to any stable versions.

Thanks to Nicholas Piggin for suggesting this solution.

Fixes: 88f1a9cb068d ("powerpc: Introduce entry_{32,64}.S, misc_{32,64}.S, systbl.S")
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: linuxppc-dev@lists.ozlabs.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/powerpc/kernel/misc_32.S