]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Silence spurious kbuild warning on menuconfig
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 11 Apr 2017 16:32:30 +0000 (17:32 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 12 Apr 2017 08:48:03 +0000 (09:48 +0100)
commit3c13d82f645ed66f436ccb7005b7cd0837c323be
tree1fa3b6da12b32db73fc304f1ac82e126ce9d69a7
parent497dec978416e580407897981bdf4af6258e4624
arm64: Silence spurious kbuild warning on menuconfig

Since 1921aff7fd20 ("arm64: Add detection code for broken .inst support
in binutils"), running any make target that doesn't involve the cross
compiler results in a spurious warning:

$ make ARCH=arm64 menuconfig
arch/arm64/Makefile:43: Detected assembler with broken .inst; disassembly will be unreliable

while

$ make ARCH=arm64 CROSS_COMPILE=aarch64-arm-linux- menuconfig

is silent (assuming your compiler is not affected). That's because
the code that tests for the workaround is always run, irrespective
of the current configuration being available or not.

An easy fix is to make the detection conditional on CONFIG_ARM64
being defined, which is only the case when actually building
something.

Fixes: 1921aff7fd20 ("arm64: Add detection code for broken .inst support in binutils")
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/Makefile