mirror-linux/arch/s390
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
..
appldata s390: Explicitly include <linux/export.h> 2025-06-17 18:18:02 +02:00
boot s390/mm: Do not map lowcore with identity mapping 2025-08-20 16:37:28 +02:00
configs s390/configs: Set HZ=1000 2025-08-20 16:37:27 +02:00
crypto This update includes the following changes: 2025-07-31 09:45:28 -07:00
hypfs s390/hypfs: Enable limited access during lockdown 2025-08-21 17:46:14 +02:00
include more s390 updates for 6.17 merge window 2025-08-08 06:56:55 +03:00
kernel arch: Add the macro COMPILE_OFFSETS to all the asm-offsets.c 2025-09-25 09:57:15 +02:00
kvm ARM: 2025-07-30 17:14:01 -07:00
lib s390 updates for 6.17 merge window 2025-07-29 20:17:08 -07:00
mm more s390 updates for 6.17 merge window 2025-08-08 06:56:55 +03:00
net bpf-next-6.17 2025-07-30 09:58:50 -07:00
pci s390 updates for 6.17 merge window 2025-07-29 20:17:08 -07:00
purgatory lib/crypto: sha256: Make library API use strongly-typed contexts 2025-07-04 10:18:53 -07:00
tools s390: Allow to compile with z17 optimizations 2025-04-09 12:12:41 +02:00
Kbuild - An extensive rework of kexec and crash Kconfig from Eric DeVolder 2023-08-29 14:53:51 -07:00
Kconfig sched: Unify the SCHED_{SMT,CLUSTER,MC} Kconfig 2025-09-03 10:03:13 +02:00
Kconfig.debug s390/mm: Add configurable STRICT_MM_TYPECHECKS 2025-03-11 15:27:34 +01:00
Makefile s390: Allow to compile with z17 optimizations 2025-04-09 12:12:41 +02:00
Makefile.postlink kbuild: Create intermediate vmlinux build with relocations preserved 2025-03-17 00:29:50 +09:00