]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
LoongArch: Increase TASK_STRUCT_OFFSET up to 2040 for 32BIT
authorHuacai Chen <chenhuacai@loongson.cn>
Thu, 23 Jul 2026 14:27:15 +0000 (22:27 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Thu, 23 Jul 2026 14:27:15 +0000 (22:27 +0800)
commit7917d16d14fb512f8ffe3815b7940b6c93ff4fde
tree3bf44eece09854ad56ecdcf8d7d23b649aeaa7b5
parent1590cf0329716306e948a8fc29f1d3ee87d3989f
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>
arch/loongarch/include/asm/asmmacro.h