Skip to content

Commit 5497c25

Browse files
chleroympe
authored andcommitted
powerpc: Use sizeof(struct thread_info) in INIT_SP_LIMIT
Currently INIT_SP_LIMIT uses sizeof(init_thread_info), but that symbol won't exist when we enable THREAD_INFO_IN_TASK. So just use the sizeof the type which is the same value but will continue to work. Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Reviewed-by: Nicholas Piggin <npiggin@gmail.com> [mpe: Split out of larger patch] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 678c668 commit 5497c25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/include/asm/processor.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ struct thread_struct {
271271

272272
#define INIT_SP (sizeof(init_stack) + (unsigned long) &init_stack)
273273
#define INIT_SP_LIMIT \
274-
(_ALIGN_UP(sizeof(init_thread_info), 16) + (unsigned long) &init_stack)
274+
(_ALIGN_UP(sizeof(struct thread_info), 16) + (unsigned long)&init_stack)
275275

276276
#ifdef CONFIG_SPE
277277
#define SPEFSCR_INIT \

0 commit comments

Comments
 (0)