Skip to content

Commit 2e195ea

Browse files
committed
m68k: sun3: Fix context restore in flush_tlb_range()
When building with W=1: In file included from arch/m68k/kernel/traps.c:42: arch/m68k/include/asm/tlbflush.h: In function ‘flush_tlb_range’: arch/m68k/include/asm/tlbflush.h:191:28: warning: variable ‘oldctx’ set but not used [-Wunused-but-set-variable] 191 | unsigned char seg, oldctx; | ^~~~~~ Indeed, the old context is saved, but never restored. Fix this by adding the missing call to sun3_put_context(). Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/ea859b7850e061e0f7fb3fca64d9f8e6d1c0d2ad.1694613528.git.geert@linux-m68k.org
1 parent 4ebe845 commit 2e195ea

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

arch/m68k/include/asm/tlbflush.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,7 @@ static inline void flush_tlb_range (struct vm_area_struct *vma,
208208
next:
209209
start += SUN3_PMEG_SIZE;
210210
}
211+
sun3_put_context(oldctx);
211212
}
212213

213214
static inline void flush_tlb_kernel_range(unsigned long start, unsigned long end)

0 commit comments

Comments
 (0)