mirror-linux/arch/mips
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
..
alchemy treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
ath25 MIPS: Switch to irq_domain_create_*() 2025-05-16 21:06:10 +02:00
ath79
bcm47xx net: phy: fixed_phy: remove irq argument from fixed_phy_add 2025-05-20 18:17:43 -07:00
bcm63xx treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
bmips
boot mips: lantiq: xway: sysctrl: rename the etop node 2025-08-22 22:03:21 +02:00
cavium-octeon lib/crypto: mips/sha1: Migrate optimized code into library 2025-07-14 11:11:49 -07:00
cobalt
configs sound updates #2 for 6.17-rc1 2025-08-01 12:26:24 -07:00
crypto lib/crypto: mips/sha1: Migrate optimized code into library 2025-07-14 11:11:49 -07:00
dec MIPS: dec: Declare which_prom() as static 2025-02-27 10:40:45 +01:00
econet mips: dts: Add EcoNet DTS with EN751221 and SmartFiber XP8421-B board 2025-05-20 08:47:07 +02:00
fw
generic
include Summary of significant series in this pull request: 2025-07-31 14:57:54 -07:00
ingenic
jazz
kernel arch: Add the macro COMPILE_OFFSETS to all the asm-offsets.c 2025-09-25 09:57:15 +02:00
kvm MIPS: Don't use %pK through printk 2025-07-28 09:58:49 +02:00
lantiq mips: lantiq: xway: sysctrl: rename the etop node 2025-08-22 22:03:21 +02:00
lib Crypto library updates for 6.17 2025-07-28 17:58:52 -07:00
loongson2ef MIPS: Loongson2ef: Replace deprecated strncpy() with strscpy() 2025-02-27 10:40:01 +01:00
loongson32
loongson64 MIPS/Loongson: Fix build warnings about export.h 2025-07-02 13:31:43 +02:00
math-emu mips/math-emu: fix emulation of the prefx instruction 2025-01-11 12:49:05 +01:00
mm MIPS: Don't use %pK through printk 2025-07-28 09:58:49 +02:00
mobileye
mti-malta
n64
net
pci MIPS: pci: lantiq: marks pcibios_init() as static 2025-07-02 13:36:41 +02:00
pic32
power
ralink MIPS: ralink: add missing header include 2025-07-02 13:23:01 +02:00
rb532 treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
sgi-ip22 treewide: Switch/rename to timer_delete[_sync]() 2025-04-05 10:30:12 +02:00
sgi-ip27 MIPS: SGI-IP27: Delete an unnecessary check before kfree() in hub_domain_free() 2025-07-16 18:54:16 +02:00
sgi-ip30 MIPS: Update Joshua Kinard's e-mail address 2025-07-28 09:57:24 +02:00
sgi-ip32
sibyte
sni mips: sni: Do not include <linux/fb.h> 2025-02-21 10:19:48 +01:00
tools
txx9 treewide: rename GPIO set callbacks back to their original names 2025-08-07 10:07:06 +02:00
vdso mips: Add -std= flag specified in KBUILD_CFLAGS to vdso CFLAGS 2025-04-27 09:37:10 +02:00
Kbuild
Kbuild.platforms mips: Add EcoNet MIPS platform support 2025-05-20 08:46:58 +02:00
Kconfig sched: Unify the SCHED_{SMT,CLUSTER,MC} Kconfig 2025-09-03 10:03:13 +02:00
Kconfig.debug
Makefile kbuild: Introduce Kconfig symbol for linking vmlinux with relocations 2025-03-17 00:29:50 +09:00
Makefile.postlink kbuild: Create intermediate vmlinux build with relocations preserved 2025-03-17 00:29:50 +09:00