OSDN Git Service

printk: Rework parse_prefix into printk_parse_prefix
authorChris Down <chris@chrisdown.name>
Tue, 15 Jun 2021 16:52:51 +0000 (17:52 +0100)
committerPetr Mladek <pmladek@suse.com>
Mon, 19 Jul 2021 09:57:18 +0000 (11:57 +0200)
commitf3d75cf537db57f7918a17a75527951de850e5ec
tree326c4bd0e0381370a607c4e5faacd68a2758627e
parenta1ad4b8a19566b11e0306f8b197f2fd4567340e5
printk: Rework parse_prefix into printk_parse_prefix

parse_prefix is needed externally by later patches, so move it into a
context where it can be used as such. Also give it the printk_ prefix to
reduce the chance of collisions.

Signed-off-by: Chris Down <chris@chrisdown.name>
Cc: Petr Mladek <pmladek@suse.com>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Acked-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/b22ba314a860e5c7f887958f1eab2649f9bd1d06.1623775748.git.chris@chrisdown.name
kernel/printk/internal.h
kernel/printk/printk.c