Skip to content

Commit 9af0f90

Browse files
Christoph Hellwigtorvalds
authored andcommitted
nds32: use uaccess_kernel in show_regs
Use the uaccess_kernel helper instead of duplicating it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Acked-by: Greentime Hu <green.hu@gmail.com> Cc: Nick Hu <nickhu@andestech.com> Cc: Vincent Chen <deanbo422@gmail.com> Cc: Paul Walmsley <paul.walmsley@sifive.com> Cc: Palmer Dabbelt <palmer@dabbelt.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Link: http://lkml.kernel.org/r/20200710135706.537715-3-hch@lst.de Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent bfe00c5 commit 9af0f90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/nds32/kernel/process.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void show_regs(struct pt_regs *regs)
121121
regs->uregs[3], regs->uregs[2], regs->uregs[1], regs->uregs[0]);
122122
pr_info(" IRQs o%s Segment %s\n",
123123
interrupts_enabled(regs) ? "n" : "ff",
124-
segment_eq(get_fs(), KERNEL_DS)? "kernel" : "user");
124+
uaccess_kernel() ? "kernel" : "user");
125125
}
126126

127127
EXPORT_SYMBOL(show_regs);

0 commit comments

Comments
 (0)