]> Git Repo - linux.git/commitdiff
printk: Declare log_wait properly
authorThomas Gleixner <[email protected]>
Sat, 24 Sep 2022 00:04:38 +0000 (02:10 +0206)
committerPetr Mladek <[email protected]>
Thu, 29 Sep 2022 13:20:29 +0000 (15:20 +0200)
kernel/printk/printk.c:365:1: warning: symbol 'log_wait' was not declared. Should it be static?

Signed-off-by: Thomas Gleixner <[email protected]>
Signed-off-by: John Ogness <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Petr Mladek <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
fs/proc/kmsg.c
include/linux/syslog.h

index b38ad552887fb5e692787ace19861855b1e4ed0c..9d6950ac10fe8780cc8949e2dfc954187be3cc27 100644 (file)
@@ -18,8 +18,6 @@
 #include <linux/uaccess.h>
 #include <asm/io.h>
 
-extern wait_queue_head_t log_wait;
-
 static int kmsg_open(struct inode * inode, struct file * file)
 {
        return do_syslog(SYSLOG_ACTION_OPEN, NULL, 0, SYSLOG_FROM_PROC);
index 86af908e26633f9dda7ab6cf7300badb7a4d2321..955f80e34d4fda361fd120907930d4595842ca8a 100644 (file)
@@ -8,6 +8,8 @@
 #ifndef _LINUX_SYSLOG_H
 #define _LINUX_SYSLOG_H
 
+#include <linux/wait.h>
+
 /* Close the log.  Currently a NOP. */
 #define SYSLOG_ACTION_CLOSE          0
 /* Open the log. Currently a NOP. */
@@ -35,5 +37,6 @@
 #define SYSLOG_FROM_PROC             1
 
 int do_syslog(int type, char __user *buf, int count, int source);
+extern wait_queue_head_t log_wait;
 
 #endif /* _LINUX_SYSLOG_H */
This page took 0.058641 seconds and 4 git commands to generate.