summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2026-07-23 22:27:15 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2026-07-23 22:27:15 +0800
commit7917d16d14fb512f8ffe3815b7940b6c93ff4fde (patch)
tree3bf44eece09854ad56ecdcf8d7d23b649aeaa7b5 /arch
parent1590cf0329716306e948a8fc29f1d3ee87d3989f (diff)
downloadlinux-next-7917d16d14fb512f8ffe3815b7940b6c93ff4fde.tar.gz
linux-next-7917d16d14fb512f8ffe3815b7940b6c93ff4fde.zip
LoongArch: Increase TASK_STRUCT_OFFSET up to 2040 for 32BIT
THREAD_INFO_IN_TASK increase the size of task_struct, which casuses a build error for the 32BIT kernel if RANDSTRUCT is enabled. So increase TASK_STRUCT_OFFSET as big as possible (2040), but can still be aligned and be fit in the addi.w instruction. Cc: stable@vger.kernel.org Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch')
-rw-r--r--arch/loongarch/include/asm/asmmacro.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/loongarch/include/asm/asmmacro.h b/arch/loongarch/include/asm/asmmacro.h
index a648be5f723f..b7423d1ac568 100644
--- a/arch/loongarch/include/asm/asmmacro.h
+++ b/arch/loongarch/include/asm/asmmacro.h
@@ -14,7 +14,7 @@
#ifdef CONFIG_64BIT
#define TASK_STRUCT_OFFSET 0
#else
-#define TASK_STRUCT_OFFSET 2000
+#define TASK_STRUCT_OFFSET 2040
#endif
.macro cpu_save_nonscratch thread