linux-stable/arch
Nathan Chancellor 79c8d93514 ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGS
[ Upstream commit 87c4e1459e ]

After commit d5c8d6e0fa ("kbuild: Update assembler calls to use proper
flags and language target"), which updated as-instr to use the
'assembler-with-cpp' language option, the Kbuild version of as-instr
always fails internally for arch/arm with

  <command-line>: fatal error: asm/unified.h: No such file or directory
  compilation terminated.

because '-include' flags are now taken into account by the compiler
driver and as-instr does not have '$(LINUXINCLUDE)', so unified.h is not
found.

This went unnoticed at the time of the Kbuild change because the last
use of as-instr in Kbuild that arch/arm could reach was removed in 5.7
by commit 541ad0150c ("arm: Remove 32bit KVM host support") but a
stable backport of the Kbuild change to before that point exposed this
potential issue if one were to be reintroduced.

Follow the general pattern of '-include' paths throughout the tree and
make unified.h absolute using '$(srctree)' to ensure KBUILD_AFLAGS can
be used independently.

Closes: https://lore.kernel.org/CACo-S-1qbCX4WAVFA63dWfHtrRHZBTyyr2js8Lx=Az03XHTTHg@mail.gmail.com/

Cc: stable@vger.kernel.org
Fixes: d5c8d6e0fa ("kbuild: Update assembler calls to use proper flags and language target")
Reported-by: KernelCI bot <bot@kernelci.org>
Reviewed-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
[ No KBUILD_RUSTFLAGS in <=6.12 ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-01 09:47:33 +01:00
..
alpha
arc
arm ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGS 2025-08-01 09:47:33 +01:00
arm64 arm64/cpufeatures/kvm: Add ARMv8.9 FEAT_ECBHB bits in ID_AA64MMFR1 register 2025-08-01 09:47:32 +01:00
csky
hexagon
ia64
loongarch LoongArch: Fix panic caused by NULL-PMD in huge_pte_offset() 2025-06-27 11:08:58 +01:00
m68k m68k: mac: Fix macintosh_config for Mac II 2025-06-19 15:28:07 +02:00
microblaze
mips mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS 2025-06-27 11:08:50 +01:00
nios2
openrisc
parisc parisc: fix building with gcc-15 2025-06-27 11:08:48 +01:00
powerpc crypto: powerpc/poly1305 - add depends on BROKEN for now 2025-08-01 09:47:32 +01:00
riscv RISC-V: KVM: Don't treat SBI HFENCE calls as NOPs 2025-06-27 11:09:04 +01:00
s390 s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL again 2025-07-24 08:53:14 +02:00
sh
sparc
um um: vector: Reduce stack usage in vector_eth_configure() 2025-07-17 18:35:20 +02:00
x86 perf/x86/intel: Fix crash in icl_update_topdown_event() 2025-08-01 09:47:32 +01:00
xtensa
.gitignore
Kconfig