mirror-linux/arch/powerpc
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 powerpc/boot/install.sh: Fix shellcheck warnings 2025-08-20 14:05:18 +05:30
configs Networking changes for 6.17. 2025-07-30 08:58:55 -07:00
crypto lib/crypto: powerpc/sha1: Migrate optimized code into library 2025-07-14 11:11:49 -07:00
include sched/fair: Get rid of sched_domains_curr_level hack for tl->cpumask() 2025-09-03 10:03:12 +02:00
kernel arch: Add the macro COMPILE_OFFSETS to all the asm-offsets.c 2025-09-25 09:57:15 +02:00
kexec Add a new optional ",cma" suffix to the crashkernel= command line option 2025-07-19 19:08:22 -07:00
kvm KVM: PPC: Fix misleading interrupts comment in kvmppc_prepare_to_enter() 2025-08-20 13:51:26 +05:30
lib Crypto library updates for 6.17 2025-07-28 17:58:52 -07:00
math-emu
mm Significant patch series in this pull request: 2025-08-03 16:23:09 -07:00
net powerpc fixes for 6.17 #2 2025-08-03 19:15:04 -07:00
perf powerpc updates for 6.17 2025-07-29 20:28:38 -07:00
platforms powerpc: unify two CONFIG_POWERPC64_CPU entries in the same choice block 2025-08-20 14:02:47 +05:30
purgatory Makefile: remove redundant tool coverage variables 2024-05-14 23:35:48 +09:00
sysdev powerpc: Use dev_fwnode() 2025-08-20 13:53:10 +05:30
tools powerpc/ftrace: Fix ftrace bug with KASAN=y 2024-11-10 22:33:51 +11:00
xmon powerpc: Don't use --- in kernel logs 2025-04-29 11:41:38 +05:30
Kbuild powerpc64/ftrace: Move ftrace sequence out of line 2024-10-31 11:00:54 +11:00
Kconfig sched: Unify the SCHED_{SMT,CLUSTER,MC} Kconfig 2025-09-03 10:03:13 +02:00
Kconfig.debug powerpc: Remove UDBG_RTAS_CONSOLE 2025-02-26 21:15:09 +05:30
Makefile arch/powerpc: Remove .interp section in vmlinux 2025-07-22 14:21:19 +05:30
Makefile.postlink powerpc/ftrace: Add a postlink script to validate function tracer 2024-10-31 11:00:54 +11:00