From: Punit Agrawal Date: Mon, 14 Jun 2021 23:56:35 +0000 (+0900) Subject: printk: Move EXPORT_SYMBOL() closer to vprintk definition X-Git-Tag: accepted/tizen/unified/20230118.172025~7057^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6262e1b906a1ba12688ea6039453b4a088dbaf44;p=platform%2Fkernel%2Flinux-rpi.git 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: https://lore.kernel.org/r/20210614235635.887365-1-punitagrawal@gmail.com --- diff --git a/kernel/printk/printk_safe.c b/kernel/printk/printk_safe.c index 7a14146..9423218 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); } +EXPORT_SYMBOL(vprintk); 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. */ printk_safe_flush(); } -EXPORT_SYMBOL(vprintk);