From 311282ba6686a9410c7b3123b95b2281c0042f37 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 20 Mar 2018 21:58:17 +0100 Subject: rename file_operations -> cdev_operations Linux also has struct file_operations which are something different. Rename our file_operations to cdev_operations which better matches what we have. Signed-off-by: Sascha Hauer --- fs/devfs-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fs') diff --git a/fs/devfs-core.c b/fs/devfs-core.c index ea5887c720..d06a534b57 100644 --- a/fs/devfs-core.c +++ b/fs/devfs-core.c @@ -457,7 +457,7 @@ static ssize_t loop_write(struct cdev *cdev, const void *buf, size_t count, return write(priv->fd, buf, count); } -static const struct file_operations loop_ops = { +static const struct cdev_operations loop_ops = { .read = loop_read, .write = loop_write, .memmap = generic_memmap_rw, -- cgit v1.2.3