diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2016-01-09 08:25:01 +1100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2016-01-09 08:28:44 +1100 |
commit | c33e54fafacaf83b3e345aae0e241c1f152224a0 (patch) | |
tree | f79b1f6317b7375076b72267ed24ac686eb731e4 /arch/powerpc/mm | |
parent | 7b8ad495d59280b634a7b546f4cdf58cf4d65f61 (diff) | |
download | linux-c33e54fafacaf83b3e345aae0e241c1f152224a0.tar.gz linux-c33e54fafacaf83b3e345aae0e241c1f152224a0.tar.bz2 linux-c33e54fafacaf83b3e345aae0e241c1f152224a0.zip |
powerpc: Fix build break due to paca mm_context_t changes
Commit 2fc251a8dda5 ("powerpc: Copy only required pieces of the
mm_context_t to the paca") broke the build for CONFIG_PPC_STD_MMU_64=y
and CONFIG_PPC_MM_SLICES=n.
That only happens for a kernel built with 4K pages and HUGETLB disabled,
which is why we missed it.
Fix it by adding a mm_ctx_user_psize member to the paca and populating
it in the appropriate places.
Fixes: 2fc251a8dda5 ("powerpc: Copy only required pieces of the mm_context_t to the paca")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r-- | arch/powerpc/mm/hash_utils_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/hash_utils_64.c b/arch/powerpc/mm/hash_utils_64.c index db744576d730..ba59d5977f34 100644 --- a/arch/powerpc/mm/hash_utils_64.c +++ b/arch/powerpc/mm/hash_utils_64.c @@ -866,7 +866,7 @@ static unsigned int get_paca_psize(unsigned long addr) #else unsigned int get_paca_psize(unsigned long addr) { - return get_paca()->context.user_psize; + return get_paca()->mm_ctx_user_psize; } #endif |