]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
s390/asm-offsets: Remove ASM_OFFSETS_C
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 21 Mar 2025 12:22:14 +0000 (13:22 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 31 Mar 2025 10:20:39 +0000 (12:20 +0200)
Remove ASM_OFFSETS_C which is used as guard in thread_info.h to decide if
asm-offsets can be included or not.

There is no reason to include asm-offsets.h in thread_info.h anymore.
Remove the define and the not needed include. Explicitly include
asm-offsets.h in all header files which require it, and where it used
to be included implicitly via thread_info.h.

This reduces header dependencies.

Acked-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/thread_info.h
arch/s390/kernel/asm-offsets.c
arch/s390/kernel/dumpstack.c
arch/s390/kernel/early.c
arch/s390/kernel/stacktrace.c
arch/s390/mm/pfault.c

index 1ad5e82c2f653fbfd216bdabdef862db2b04afdc..91f569cae1ce2809eb369bec625a02be92e44f18 100644 (file)
@@ -9,9 +9,6 @@
 #define _ASM_THREAD_INFO_H
 
 #include <linux/bits.h>
-#ifndef ASM_OFFSETS_C
-#include <asm/asm-offsets.h>
-#endif
 
 /*
  * General size of kernel stacks
index 6e02e9074bb08699ab371481dd53dd9d7e1627d3..841e05f7fa7e3083595b57b83cb8fa625ce3b80c 100644 (file)
@@ -5,8 +5,6 @@
  * and format the required data.
  */
 
-#define ASM_OFFSETS_C
-
 #include <linux/kbuild.h>
 #include <linux/sched.h>
 #include <linux/purgatory.h>
index 911b95cd57e5888f3152bda0a34c733393c68834..dd410962ecbe1d64a3347b4f2d881ca4610273d8 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/sched.h>
 #include <linux/sched/debug.h>
 #include <linux/sched/task_stack.h>
+#include <asm/asm-offsets.h>
 #include <asm/processor.h>
 #include <asm/debug.h>
 #include <asm/dis.h>
index b6d3c7a6209db940e3a995b596904a245ebf9712..54cf0923050f2d2c562dba5fbbb72287193920a0 100644 (file)
@@ -22,6 +22,7 @@
 #include <asm/asm-extable.h>
 #include <linux/memblock.h>
 #include <asm/access-regs.h>
+#include <asm/asm-offsets.h>
 #include <asm/machine.h>
 #include <asm/diag.h>
 #include <asm/ebcdic.h>
index 40edfde25f5b977230080f9c4f94fe6c0c87ed4a..b153a395f46d25023a9b37c5c95f4701284d3cd6 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/stacktrace.h>
 #include <linux/uaccess.h>
 #include <linux/compat.h>
+#include <asm/asm-offsets.h>
 #include <asm/stacktrace.h>
 #include <asm/unwind.h>
 #include <asm/kprobes.h>
index b01e73f5b9b8110680ec7ee9838d5402d61a1d1f..e6175d75e4b0790a456ab826d89382cccc57aeec 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/init.h>
 #include <linux/irq.h>
 #include <asm/asm-extable.h>
+#include <asm/asm-offsets.h>
 #include <asm/pfault.h>
 #include <asm/diag.h>