llseek: automatically add .llseek fop
[firefly-linux-kernel-4.4.55.git] / arch / um / drivers / mconsole_kern.c
index de317d0c329486b57efb3568f7c4514393ac5677..975613b23dcfb9cd0b60d46afa05260e733d90c2 100644 (file)
@@ -690,7 +690,7 @@ static void with_console(struct mc_request *req, void (*proc)(void *),
 static void sysrq_proc(void *arg)
 {
        char *op = arg;
-       handle_sysrq(*op, NULL);
+       handle_sysrq(*op);
 }
 
 void mconsole_sysrq(struct mc_request *req)
@@ -843,6 +843,7 @@ static ssize_t mconsole_proc_write(struct file *file,
 static const struct file_operations mconsole_proc_fops = {
        .owner          = THIS_MODULE,
        .write          = mconsole_proc_write,
+       .llseek         = noop_llseek,
 };
 
 static int create_proc_mconsole(void)