powerpc: Avoid circular header inclusion in mmu-hash.h
authorChristophe Leroy <christophe.leroy@c-s.fr>
Thu, 31 Jan 2019 10:08:48 +0000 (10:08 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 23 Feb 2019 11:31:39 +0000 (22:31 +1100)
commit92ab45c5f2db0caa68243be8cfa5e390a1de8c3a
treea5817b22e8d438a8f4ee4c761f155d732a450a71
parentc8e409a33cf8df5060064a70df3e1350841371e1
powerpc: Avoid circular header inclusion in mmu-hash.h

When activating CONFIG_THREAD_INFO_IN_TASK, linux/sched.h includes
asm/current.h. This generates a circular dependency. To avoid that,
asm/processor.h shall not be included in mmu-hash.h.

In order to do that, this patch moves into a new header called
asm/task_size_64/32.h all the TASK_SIZE related constants, which can
then be included in mmu-hash.h directly.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
[mpe: Split out all the TASK_SIZE constants not just 64-bit ones]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/include/asm/processor.h
arch/powerpc/include/asm/task_size_32.h [new file with mode: 0644]
arch/powerpc/include/asm/task_size_64.h [new file with mode: 0644]
arch/powerpc/kvm/book3s_hv_hmi.c