linux-yocto/arch/arm
Nathan Chancellor 3a12e18a03 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>
[ adapted to missing -Wa ]
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2025-08-28 16:24:30 +02:00
..
boot ARM: dts: imx6ul-kontron-bl-common: Fix RTS polarity for RS485 interface 2025-08-28 16:24:06 +02:00
common
configs
crypto crypto: arm/sha - fix function cast warnings 2024-03-26 18:21:29 -04:00
include sched: Add wrapper for get_wchan() to keep task blocked 2025-08-28 16:24:03 +02:00
kernel sched: Add wrapper for get_wchan() to keep task blocked 2025-08-28 16:24:03 +02:00
lib ARM: 9321/1: memset: cast the constant byte to unsigned char 2023-11-20 11:08:23 +01:00
mach-actions
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed
mach-at91 ARM: at91: pm: fix at91_suspend_finish for ZQ calibration 2025-06-04 14:37:59 +02:00
mach-axxia
mach-bcm
mach-berlin
mach-clps711x
mach-cns3xxx
mach-davinci ARM: davinci: Convert comma to semicolon 2024-07-18 13:07:39 +02:00
mach-digicolor
mach-dove treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1) 2023-10-06 13:18:12 +02:00
mach-ep93xx ARM: ep93xx: Add terminator to gpiod_lookup_table 2024-03-01 13:21:48 +01:00
mach-exynos
mach-footbridge
mach-gemini
mach-highbank
mach-hisi
mach-imx ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init 2023-12-13 18:36:41 +01:00
mach-integrator
mach-iop32x
mach-ixp4xx
mach-keystone
mach-lpc18xx treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1) 2023-10-06 13:18:12 +02:00
mach-lpc32xx treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1) 2023-10-06 13:18:12 +02:00
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp
mach-moxart
mach-mstar
mach-mv78xx0 treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1) 2023-10-06 13:18:12 +02:00
mach-mvebu treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1) 2023-10-06 13:18:12 +02:00
mach-mxs
mach-nomadik
mach-npcm
mach-nspire
mach-omap1 treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1) 2023-10-06 13:18:12 +02:00
mach-omap2 ARM: OMAP2+: Fix l4ls clk domain handling in STANDBY 2025-06-27 11:05:33 +01:00
mach-orion5x treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1) 2023-10-06 13:18:12 +02:00
mach-oxnas
mach-pxa ARM: spitz: fix GPIO assignment for backlight 2024-08-19 05:44:54 +02:00
mach-qcom
mach-rda
mach-realtek
mach-realview ARM: versatile: fix OF node leak in CPUs prepare 2024-10-17 15:10:49 +02:00
mach-rockchip ARM: rockchip: fix kernel hang during smp initialization 2025-08-28 16:24:17 +02:00
mach-rpc
mach-s3c
mach-s5pv210
mach-sa1100
mach-shmobile ARM: shmobile: smp: Enforce shmobile_smp_* alignment 2025-04-10 14:31:55 +02:00
mach-socfpga
mach-spear treewide: Replace GPLv2 boilerplate/reference with SPDX - gpl-2.0_56.RULE (part 1) 2023-10-06 13:18:12 +02:00
mach-sti
mach-stm32
mach-sunxi ARM: sun9i: smp: fix return code check of of_property_match_string 2024-01-25 14:52:30 -08:00
mach-tegra ARM: tegra: Use I/O memcpy to write to IRAM 2025-08-28 16:24:18 +02:00
mach-uniphier
mach-ux500
mach-versatile
mach-vexpress
mach-vt8500
mach-zynq
mm ARM: 9447/1: arm/memremap: fix arch_memremap_can_ram_remap() 2025-06-27 11:05:24 +01:00
net
nwfpe
plat-omap
plat-orion
plat-pxa
plat-versatile
probes
tools
vdso
vfp
xen arm/xen: fix xen_vcpu_info allocation alignment 2023-12-03 07:31:22 +01:00
Kbuild
Kconfig
Kconfig-nommu
Kconfig.assembler
Kconfig.debug
Makefile ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGS 2025-08-28 16:24:30 +02:00