mirror-linux/arch/arm
Menglong Dong 35561bab76 arch: Add the macro COMPILE_OFFSETS to all the asm-offsets.c
The include/generated/asm-offsets.h is generated in Kbuild during
compiling from arch/SRCARCH/kernel/asm-offsets.c. When we want to
generate another similar offset header file, circular dependency can
happen.

For example, we want to generate a offset file include/generated/test.h,
which is included in include/sched/sched.h. If we generate asm-offsets.h
first, it will fail, as include/sched/sched.h is included in asm-offsets.c
and include/generated/test.h doesn't exist; If we generate test.h first,
it can't success neither, as include/generated/asm-offsets.h is included
by it.

In x86_64, the macro COMPILE_OFFSETS is used to avoid such circular
dependency. We can generate asm-offsets.h first, and if the
COMPILE_OFFSETS is defined, we don't include the "generated/test.h".

And we define the macro COMPILE_OFFSETS for all the asm-offsets.c for this
purpose.

Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
2025-09-25 09:57:15 +02:00
..
boot soc: fixes for 6.17, part 1 2025-08-09 07:58:55 +03:00
common treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
configs sound updates #2 for 6.17-rc1 2025-08-01 12:26:24 -07:00
crypto This update includes the following changes: 2025-07-31 09:45:28 -07:00
include ARM: stacktrace: include asm/sections.h in asm/stacktrace.h 2025-08-25 06:12:06 -07:00
kernel arch: Add the macro COMPILE_OFFSETS to all the asm-offsets.c 2025-09-25 09:57:15 +02:00
lib Crypto library updates for 6.17 2025-07-28 17:58:52 -07:00
mach-actions
mach-alpine
mach-artpec
mach-aspeed ARM: aspeed: Don't select SRAM 2025-05-21 23:07:08 +02:00
mach-at91 ARM: at91: pm: Enable ULP0/ULP1 for SAMA7D65 2025-03-02 17:38:54 +02:00
mach-axxia
mach-bcm
mach-berlin
mach-clps711x
mach-davinci ARM: davinci: remove support for da830 2025-04-16 18:02:20 +02:00
mach-digicolor
mach-dove
mach-ep93xx
mach-exynos ARM: Switch to irq_domain_create_*() 2025-05-16 21:06:08 +02:00
mach-footbridge treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
mach-gemini
mach-highbank ARM: Switch to new sys-off handler API 2025-07-04 09:31:17 +02:00
mach-hisi
mach-hpe
mach-imx ARM: Switch to irq_domain_create_*() 2025-05-16 21:06:08 +02:00
mach-ixp4xx
mach-keystone
mach-lpc18xx
mach-lpc32xx
mach-mediatek ARM: mediatek: add MT6572 smp bring up code 2025-07-11 10:04:08 +02:00
mach-meson
mach-milbeaut
mach-mmp
mach-mstar
mach-mv78xx0
mach-mvebu
mach-mxs
mach-nomadik
mach-npcm
mach-omap1 ARM: omap1: ams-delta: use generic device properties for gpio-mmio 2025-07-07 09:31:08 +02:00
mach-omap2 ARM: soc updates for 6.16 2025-05-31 08:03:09 -07:00
mach-orion5x
mach-pxa ARM: Switch to new sys-off handler API 2025-07-04 09:31:17 +02:00
mach-qcom
mach-realtek
mach-rockchip ARM: rockchip: fix kernel hang during smp initialization 2025-07-14 15:38:40 +02:00
mach-rpc ARM: riscpc: make ecard_bus_type constant 2025-01-10 15:42:06 +01:00
mach-s3c soc: fixes for 6.17, part 1 2025-08-09 07:58:55 +03:00
mach-s5pv210
mach-sa1100 treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
mach-shmobile soc: arm platform changes for 6.15 2025-03-27 09:37:18 -07:00
mach-socfpga
mach-spear
mach-sti
mach-stm32 ARM: stm32: add a new SoC - STM32H747 2025-05-14 10:36:14 +02:00
mach-sunxi
mach-tegra ARM: tegra: Use I/O memcpy to write to IRAM 2025-07-09 14:20:31 +02:00
mach-ux500
mach-versatile
mach-vt8500 ARM: Switch to new sys-off handler API 2025-07-04 09:31:17 +02:00
mach-zynq
mm Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
net
nwfpe
plat-orion treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
probes kernel/events/uprobes: pass VMA to set_swbp(), set_orig_insn() and uprobe_write_opcode() 2025-05-11 17:48:18 -07:00
tools fs: introduce file_getattr and file_setattr syscalls 2025-07-02 17:05:17 +02:00
vdso stackleak: Split KSTACK_ERASE_CFLAGS from GCC_PLUGINS_CFLAGS 2025-07-21 21:40:57 -07:00
vfp ARM: 9446/1: Disallow kernel mode NEON when IRQs are disabled 2025-05-29 11:22:25 +01:00
xen ARM: Switch to new sys-off handler API 2025-07-04 09:31:17 +02:00
Kbuild
Kconfig sched: Unify the SCHED_{SMT,CLUSTER,MC} Kconfig 2025-09-03 10:03:13 +02:00
Kconfig-nommu
Kconfig.debug
Kconfig.platforms
Makefile ARM: 9448/1: Use an absolute path to unified.h in KBUILD_AFLAGS 2025-07-25 15:33:50 +01:00