Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

printk: Declare log_wait properly

kernel/printk/printk.c:365:1: warning: symbol 'log_wait' was not declared. Should it be static?

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20220924000454.3319186-3-john.ogness@linutronix.de

authored by

Thomas Gleixner and committed by
Petr Mladek
e3f12f06 c60ba2d3

+3 -2
-2
fs/proc/kmsg.c
··· 18 18 #include <linux/uaccess.h> 19 19 #include <asm/io.h> 20 20 21 - extern wait_queue_head_t log_wait; 22 - 23 21 static int kmsg_open(struct inode * inode, struct file * file) 24 22 { 25 23 return do_syslog(SYSLOG_ACTION_OPEN, NULL, 0, SYSLOG_FROM_PROC);
+3
include/linux/syslog.h
··· 8 8 #ifndef _LINUX_SYSLOG_H 9 9 #define _LINUX_SYSLOG_H 10 10 11 + #include <linux/wait.h> 12 + 11 13 /* Close the log. Currently a NOP. */ 12 14 #define SYSLOG_ACTION_CLOSE 0 13 15 /* Open the log. Currently a NOP. */ ··· 37 35 #define SYSLOG_FROM_PROC 1 38 36 39 37 int do_syslog(int type, char __user *buf, int count, int source); 38 + extern wait_queue_head_t log_wait; 40 39 41 40 #endif /* _LINUX_SYSLOG_H */