summaryrefslogtreecommitdiff
path: root/fs
diff options
context:
space:
mode:
authorMarcin Niesluchowski <m.niesluchow@samsung.com>2015-04-29 19:37:05 +0200
committerSeung-Woo Kim <sw0312.kim@samsung.com>2016-12-14 13:49:12 +0900
commit8c83cc6f929d470636e6756d5447337e2f67e741 (patch)
treee22d998d7a815b57ea639b3e59c2af579c30cb3e /fs
parentdb4b141f7a3a45c8b871c0c662abde09b9628f8d (diff)
kmsg: introduce additional kmsg devices support
kmsg device provides operations on cyclic logging buffer used mainly by kernel but also in userspace by privileged processes. Additional kmsg devices keep the same log format but may be added dynamically with custom size. Change-Id: I52c28310197594888621000bb5be933173c3031d Signed-off-by: Marcin Niesluchowski <m.niesluchow@samsung.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/proc/kmsg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/kmsg.c b/fs/proc/kmsg.c
index 05f8dcdb086e..0d354e4a7d2a 100644
--- a/fs/proc/kmsg.c
+++ b/fs/proc/kmsg.c
@@ -17,7 +17,7 @@
#include <asm/uaccess.h>
#include <asm/io.h>
-extern wait_queue_head_t log_wait;
+extern wait_queue_head_t *log_wait;
static int kmsg_open(struct inode * inode, struct file * file)
{
@@ -41,7 +41,7 @@ static ssize_t kmsg_read(struct file *file, char __user *buf,
static unsigned int kmsg_poll(struct file *file, poll_table *wait)
{
- poll_wait(file, &log_wait, wait);
+ poll_wait(file, log_wait, wait);
if (do_syslog(SYSLOG_ACTION_SIZE_UNREAD, NULL, 0, SYSLOG_FROM_PROC))
return POLLIN | POLLRDNORM;
return 0;