]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita36ac6bbab235a4f01cb749c62b15cd0fba913f0
treed58a10a4e6252a38de765089d0597eac0340e3e1
parentd078b7f32642bdaf8b0903272060e203fa991978
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>
arch/powerpc/include/asm/processor.h