aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/mem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/mem.c')
-rw-r--r--drivers/char/mem.c3
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 = {
805static const struct file_operations oldmem_fops = { 805static 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
832static const struct file_operations kmsg_fops = { 833static const struct file_operations kmsg_fops = {
833 .write = kmsg_write, 834 .write = kmsg_write,
835 .llseek = noop_llseek,
834}; 836};
835 837
836static const struct memdev { 838static const struct memdev {
@@ -882,6 +884,7 @@ static int memory_open(struct inode *inode, struct file *filp)
882 884
883static const struct file_operations memory_fops = { 885static const struct file_operations memory_fops = {
884 .open = memory_open, 886 .open = memory_open,
887 .llseek = noop_llseek,
885}; 888};
886 889
887static char *mem_devnode(struct device *dev, mode_t *mode) 890static char *mem_devnode(struct device *dev, mode_t *mode)