path: root/kernel/printk/printk_safe.c
diff options
authorPunit Agrawal <>2021-06-15 08:56:35 +0900
committerPetr Mladek <>2021-06-16 10:42:19 +0200
commit6262e1b906a1ba12688ea6039453b4a088dbaf44 (patch)
tree1a87878f6882a19980679c8310471f15cb32c7cc /kernel/printk/printk_safe.c
parent7f3d08b255d1806502e45fe70ca2ba9646eb3aa1 (diff)
printk: Move EXPORT_SYMBOL() closer to vprintk definition
Commit 28e1745b9fa2 ("printk: rename vprintk_func to vprintk") while improving readability by removing vprintk indirection, inadvertently placed the EXPORT_SYMBOL() for the newly renamed function at the end of the file. For reader sanity, and as is convention move the EXPORT_SYMBOL() declaration just after the end of the function. Fixes: 28e1745b9fa2 ("printk: rename vprintk_func to vprintk") Signed-off-by: Punit Agrawal <> Acked-by: Rasmus Villemoes <> Acked-by: Sergey Senozhatsky <> Signed-off-by: Petr Mladek <> Link:
Diffstat (limited to 'kernel/printk/printk_safe.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk/printk_safe.c b/kernel/printk/printk_safe.c
index 7a1414622051..94232186fccb 100644
--- a/kernel/printk/printk_safe.c
+++ b/kernel/printk/printk_safe.c
@@ -391,6 +391,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)
/* No obstacles. */
return vprintk_default(fmt, args);
void __init printk_safe_init(void)
@@ -411,4 +412,3 @@ void __init printk_safe_init(void)
/* Flush pending messages that did not have scheduled IRQ works. */