linux-yocto/arch
Nathan Chancellor 87c4e1459e ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGS
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>
2025-07-25 15:33:50 +01:00
..
alpha treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
arc Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
arm ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGS 2025-07-25 15:33:50 +01:00
arm64 Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
csky Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
hexagon Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
loongarch Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
m68k Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
microblaze Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
mips Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
nios2 Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
openrisc Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
parisc Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
powerpc treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
riscv Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
s390 Kbuild updates for v6.16 2025-06-07 10:05:35 -07:00
sh treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
sparc treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
um treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
x86 The delayed from_timer() API cleanup: 2025-06-08 11:33:00 -07:00
xtensa treewide, timers: Rename from_timer() to timer_container_of() 2025-06-08 09:07:37 +02:00
.gitignore
Kconfig fs/resctrl: Add boiler plate for external resctrl code 2025-05-16 11:05:40 +02:00