linux-yocto/arch/arm
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
..
boot ARM: dts: am335x-bone-common: Increase MDIO reset deassert delay to 50ms 2025-06-27 11:09:03 +01:00
common
configs ARM: configs: sunxi: Enable DRM_DW_HDMI 2024-06-12 11:11:32 +02:00
crypto crypto: simd - Do not call crypto_alloc_tfm during registration 2024-10-10 11:57:26 +02:00
include ARM: 9354/1: ptrace: Use bitfield helpers 2025-07-06 11:00:17 +02:00
kernel ARM: 9430/1: entry: Do a dummy read from VMAP shadow 2024-12-09 10:33:06 +01:00
lib ARM: 9321/1: memset: cast the constant byte to unsigned char 2023-11-20 11:59:20 +01:00
mach-actions
mach-airoha
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed ARM: aspeed: Don't select SRAM 2025-06-19 15:28:25 +02:00
mach-at91 ARM: at91: pm: fix at91_suspend_finish for ZQ calibration 2025-06-04 14:42:03 +02:00
mach-axxia
mach-bcm
mach-berlin
mach-clps711x
mach-davinci ARM: davinci: da850: fix selecting ARCH_DAVINCI_DA8XX 2025-03-28 21:59:53 +01:00
mach-digicolor
mach-dove
mach-ep93xx ep93xx: clock: Fix off by one in ep93xx_div_recalc_rate() 2024-10-04 16:29:40 +02:00
mach-exynos
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-hpe
mach-imx ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2023-12-13 18:45:18 +01:00
mach-ixp4xx
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp
mach-moxart
mach-mstar
mach-mv78xx0
mach-mvebu
mach-mxs
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 ARM: OMAP1: select CONFIG_GENERIC_IRQ_CHIP 2025-03-28 21:59:52 +01:00
mach-omap2 ARM: OMAP2+: Fix l4ls clk domain handling in STANDBY 2025-06-27 11:08:57 +01:00
mach-orion5x
mach-pxa ARM: spitz: fix GPIO assignment for backlight 2024-08-03 08:53:34 +02:00
mach-qcom
mach-rda
mach-realtek
mach-rockchip
mach-rpc
mach-s3c
mach-s5pv210
mach-sa1100 ARM: locomo: fix locomolcd_power declaration 2023-09-28 09:15:51 +02:00
mach-shmobile ARM: shmobile: smp: Enforce shmobile_smp_* alignment 2025-03-28 21:59:55 +01:00
mach-socfpga
mach-spear
mach-sti
mach-stm32
mach-sunplus
mach-sunxi ARM: sun9i: smp: fix return code check of of_property_match_string 2024-01-20 11:51:47 +01:00
mach-tegra
mach-uniphier
mach-ux500
mach-versatile ARM: versatile: fix OF node leak in CPUs prepare 2024-10-04 16:29:03 +02:00
mach-vt8500
mach-zynq
mm ARM: 9447/1: arm/memremap: fix arch_memremap_can_ram_remap() 2025-06-27 11:08:46 +01:00
net Revert "bpf: Take return from set_memory_rox() into account with bpf_jit_binary_lock_ro()" 2024-07-09 11:44:29 +02:00
nwfpe
plat-orion
probes
tools
vdso kbuild: unify vdso_install rules 2024-06-12 11:12:32 +02:00
vfp ARM: 9410/1: vfp: Use asm volatile in fmrx/fmxr macros 2024-10-04 16:28:51 +02:00
xen arm/xen: fix xen_vcpu_info allocation alignment 2023-12-03 07:33:05 +01:00
Kbuild
Kconfig ARM: 9352/1: iwmmxt: Remove support for PJ4/PJ4B cores 2024-04-03 15:28:50 +02:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug
Makefile ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGS 2025-08-01 09:47:33 +01:00