]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
powerpc: Use sizeof(struct thread_info) in INIT_SP_LIMIT
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 17 Jan 2019 12:27:40 +0000 (23:27 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 23 Feb 2019 11:31:40 +0000 (22:31 +1100)
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>
arch/powerpc/include/asm/processor.h

index 2edab34ee28898085b69c38ba51634f055abaf82..c406ec3b4b3cce5d5fed2cc49163b32be7460691 100644 (file)
@@ -271,7 +271,7 @@ struct thread_struct {
 
 #define INIT_SP                (sizeof(init_stack) + (unsigned long) &init_stack)
 #define INIT_SP_LIMIT \
-       (_ALIGN_UP(sizeof(init_thread_info), 16) + (unsigned long) &init_stack)
+       (_ALIGN_UP(sizeof(struct thread_info), 16) + (unsigned long)&init_stack)
 
 #ifdef CONFIG_SPE
 #define SPEFSCR_INIT \