Skip to content

Commit 6262e1b

Browse files
punitagrawalpmladek
authored andcommitted
printk: Move EXPORT_SYMBOL() closer to vprintk definition
Commit 28e1745 ("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: 28e1745 ("printk: rename vprintk_func to vprintk") Signed-off-by: Punit Agrawal <[email protected]> Acked-by: Rasmus Villemoes <[email protected]> Acked-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 7f3d08b commit 6262e1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/printk/printk_safe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,7 @@ asmlinkage int vprintk(const char *fmt, va_list args)
391391
/* No obstacles. */
392392
return vprintk_default(fmt, args);
393393
}
394+
EXPORT_SYMBOL(vprintk);
394395

395396
void __init printk_safe_init(void)
396397
{
@@ -411,4 +412,3 @@ void __init printk_safe_init(void)
411412
/* Flush pending messages that did not have scheduled IRQ works. */
412413
printk_safe_flush();
413414
}
414-
EXPORT_SYMBOL(vprintk);

0 commit comments

Comments
 (0)