diff options
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r-- | drivers/char/mem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 1f528fad3516..e985b1c2730e 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
@@ -805,6 +805,7 @@ static const struct file_operations full_fops = { | |||
805 | static const struct file_operations oldmem_fops = { | 805 | static const struct file_operations oldmem_fops = { |
806 | .read = read_oldmem, | 806 | .read = read_oldmem, |
807 | .open = open_oldmem, | 807 | .open = open_oldmem, |
808 | .llseek = default_llseek, | ||
808 | }; | 809 | }; |
809 | #endif | 810 | #endif |
810 | 811 | ||
@@ -831,6 +832,7 @@ static ssize_t kmsg_write(struct file *file, const char __user *buf, | |||
831 | 832 | ||
832 | static const struct file_operations kmsg_fops = { | 833 | static const struct file_operations kmsg_fops = { |
833 | .write = kmsg_write, | 834 | .write = kmsg_write, |
835 | .llseek = noop_llseek, | ||
834 | }; | 836 | }; |
835 | 837 | ||
836 | static const struct memdev { | 838 | static const struct memdev { |
@@ -882,6 +884,7 @@ static int memory_open(struct inode *inode, struct file *filp) | |||
882 | 884 | ||
883 | static const struct file_operations memory_fops = { | 885 | static const struct file_operations memory_fops = { |
884 | .open = memory_open, | 886 | .open = memory_open, |
887 | .llseek = noop_llseek, | ||
885 | }; | 888 | }; |
886 | 889 | ||
887 | static char *mem_devnode(struct device *dev, mode_t *mode) | 890 | static char *mem_devnode(struct device *dev, mode_t *mode) |