From bc30172cc285d183c904ba592b9ce3c4cfdf1c3d Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sun, 11 Jan 2009 23:55:39 +0100 Subject: [PATCH] --- yaml --- r: 130431 b: refs/heads/master c: 4d187a88d3ee3be6a1a0b6859eb00f70e1601b5e h: refs/heads/master i: 130429: d7151e8890f7681732ab5466df29980dd9b0b292 130427: ff3f07a74db9b7c4811eb881a6d0cac7f5176b0d 130423: 81f5669a7fe29499d7f85d0c9c76a9abffa019ec 130415: 32bdaef5db03ae8e67b34b9d0f8d2f92bacc322b 130399: a229dfdfe246f247699c8b51241e4220a4cdb6d9 130367: 24560e5881e33a218d5df44f92d90b8711460cbc 130303: 28db0b7c931bfb0e5b07a4d16734310343b19ec0 v: v3 --- [refs] | 2 +- trunk/drivers/mtd/ubi/cdev.c | 6 +++--- trunk/drivers/mtd/ubi/ubi.h | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/[refs] b/[refs] index ad61378b0d4c..36e7cb6faf7c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ade44ce07c9316351ae321051221c9bad3af3a44 +refs/heads/master: 4d187a88d3ee3be6a1a0b6859eb00f70e1601b5e diff --git a/trunk/drivers/mtd/ubi/cdev.c b/trunk/drivers/mtd/ubi/cdev.c index c183be99c6ca..d99935c0f3c6 100644 --- a/trunk/drivers/mtd/ubi/cdev.c +++ b/trunk/drivers/mtd/ubi/cdev.c @@ -1025,20 +1025,20 @@ static int ctrl_cdev_ioctl(struct inode *inode, struct file *file, } /* UBI control character device operations */ -struct file_operations ubi_ctrl_cdev_operations = { +const struct file_operations ubi_ctrl_cdev_operations = { .ioctl = ctrl_cdev_ioctl, .owner = THIS_MODULE, }; /* UBI character device operations */ -struct file_operations ubi_cdev_operations = { +const struct file_operations ubi_cdev_operations = { .owner = THIS_MODULE, .ioctl = ubi_cdev_ioctl, .llseek = no_llseek, }; /* UBI volume character device operations */ -struct file_operations ubi_vol_cdev_operations = { +const struct file_operations ubi_vol_cdev_operations = { .owner = THIS_MODULE, .open = vol_cdev_open, .release = vol_cdev_release, diff --git a/trunk/drivers/mtd/ubi/ubi.h b/trunk/drivers/mtd/ubi/ubi.h index 4a8ec485c91d..381f0e1d0a74 100644 --- a/trunk/drivers/mtd/ubi/ubi.h +++ b/trunk/drivers/mtd/ubi/ubi.h @@ -449,9 +449,9 @@ struct ubi_device { }; extern struct kmem_cache *ubi_wl_entry_slab; -extern struct file_operations ubi_ctrl_cdev_operations; -extern struct file_operations ubi_cdev_operations; -extern struct file_operations ubi_vol_cdev_operations; +extern const struct file_operations ubi_ctrl_cdev_operations; +extern const struct file_operations ubi_cdev_operations; +extern const struct file_operations ubi_vol_cdev_operations; extern struct class *ubi_class; extern struct mutex ubi_devices_mutex;