* mtd: constify VFTs
@ 2009-01-11 22:55 Jan Engelhardt
2009-01-12 7:06 ` Artem Bityutskiy
0 siblings, 1 reply; 2+ messages in thread
From: Jan Engelhardt @ 2009-01-11 22:55 UTC (permalink / raw)
To: David Woodhouse; +Cc: linux-mtd
parent 9850cd2553595f0efa726b0ba45e7b47def8ded2 (v2.6.29-rc1-8-g9850cd2)
commit 1b4a88617720bf38c46614bf9308ccbb150979bb
Author: Jan Engelhardt <jengelh@medozas.de>
Date: Sun Jan 11 23:55:02 2009 +0100
mtd: constify VFTs
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
drivers/mtd/ubi/cdev.c | 6 +++---
drivers/mtd/ubi/ubi.h | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c
index 98cf31e..56001c8 100644
--- a/drivers/mtd/ubi/cdev.c
+++ b/drivers/mtd/ubi/cdev.c
@@ -987,20 +987,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/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h
index 4a8ec48..381f0e1 100644
--- a/drivers/mtd/ubi/ubi.h
+++ b/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;
--
# Created with git-export-patch
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: mtd: constify VFTs
2009-01-11 22:55 mtd: constify VFTs Jan Engelhardt
@ 2009-01-12 7:06 ` Artem Bityutskiy
0 siblings, 0 replies; 2+ messages in thread
From: Artem Bityutskiy @ 2009-01-12 7:06 UTC (permalink / raw)
To: Jan Engelhardt; +Cc: linux-mtd, David Woodhouse
On Sun, 2009-01-11 at 23:55 +0100, Jan Engelhardt wrote:
> parent 9850cd2553595f0efa726b0ba45e7b47def8ded2 (v2.6.29-rc1-8-g9850cd2)
> commit 1b4a88617720bf38c46614bf9308ccbb150979bb
> Author: Jan Engelhardt <jengelh@medozas.de>
> Date: Sun Jan 11 23:55:02 2009 +0100
>
> mtd: constify VFTs
>
> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
> ---
Pushed to ubi-2.6.git tree, thank you.
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-12 7:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-11 22:55 mtd: constify VFTs Jan Engelhardt
2009-01-12 7:06 ` Artem Bityutskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox