powerpc/64: Add VIRTUAL_BUG_ON checks for __va and __pa addresses
authorNicholas Piggin <npiggin@gmail.com>
Wed, 24 Jul 2019 08:46:37 +0000 (18:46 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 20 Aug 2019 11:22:20 +0000 (21:22 +1000)
commit4dd7554a6456d124c85e0a4ad156625b71390b5c
tree0a1c0905841d0b8a6f19ff452b5ca46eb8890dab
parent10c4bd7cd28e77aeb8cfa65b23cb3c632ede2a49
powerpc/64: Add VIRTUAL_BUG_ON checks for __va and __pa addresses

Ensure __va is given a physical address below PAGE_OFFSET, and __pa is
given a virtual address above PAGE_OFFSET.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20190724084638.24982-4-npiggin@gmail.com
arch/powerpc/include/asm/page.h