OSDN Git Service

printk: kmsg_dump: remove _nolock() variants
authorJohn Ogness <john.ogness@linutronix.de>
Wed, 3 Mar 2021 10:15:27 +0000 (11:15 +0100)
committerPetr Mladek <pmladek@suse.com>
Mon, 8 Mar 2021 10:43:35 +0000 (11:43 +0100)
commita4f987653241db9fa1f99531b430cebb83f1eae1
tree4ee4730e5dc934ca5aaa01dc7ac410fac1359fee
parent996e966640ddea7b535cbe7b749e87a3b24f37e8
printk: kmsg_dump: remove _nolock() variants

kmsg_dump_rewind() and kmsg_dump_get_line() are lockless, so there is
no need for _nolock() variants. Remove these functions and switch all
callers of the _nolock() variants.

The functions without _nolock() were chosen because they are already
exported to kernel modules.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210303101528.29901-15-john.ogness@linutronix.de
arch/powerpc/xmon/xmon.c
include/linux/kmsg_dump.h
kernel/debug/kdb/kdb_main.c
kernel/printk/printk.c