Skip to content

Commit a3c1680

Browse files
mpegregkh
authored andcommitted
powerpc/32s: Fix cleanup_cpu_mmu_context() compile bug
[ Upstream commit c1bea0a ] Currently pmac32_defconfig with SMP=y doesn't build: arch/powerpc/platforms/powermac/smp.c: error: implicit declaration of function 'cleanup_cpu_mmu_context' It would be nice for consistency if all platforms clear mm_cpumask and flush TLBs on unplug, but the TLB invalidation bug described in commit 01b0f0e ("powerpc/64s: Trim offlined CPUs from mm_cpumasks") only applies to 64s and for now we only have the TLB flush code for that platform. So just add an empty version for 32-bit Book3S. Fixes: 01b0f0e ("powerpc/64s: Trim offlined CPUs from mm_cpumasks") Reported-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Nicholas Piggin <[email protected]> [mpe: Change log based on comments from Nick] Signed-off-by: Michael Ellerman <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 0572a4a commit a3c1680

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/powerpc/include/asm/book3s/32/mmu-hash.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ typedef struct {
9494
} mm_context_t;
9595

9696
void update_bats(void);
97+
static inline void cleanup_cpu_mmu_context(void) { };
9798

9899
/* patch sites */
99100
extern s32 patch__hash_page_A0, patch__hash_page_A1, patch__hash_page_A2;

0 commit comments

Comments
 (0)