From: Arjan van de Ven Treat file_operationses as const in preparation for constification of them. Signed-off-by: Arjan van de Ven Signed-off-by: Andrew Morton --- drivers/usb/gadget/inode.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff -puN drivers/usb/gadget/inode.c~mark-f_ops-const-in-the-inode-gadgetfs-fix drivers/usb/gadget/inode.c --- devel/drivers/usb/gadget/inode.c~mark-f_ops-const-in-the-inode-gadgetfs-fix 2006-01-13 00:07:52.000000000 -0800 +++ devel-akpm/drivers/usb/gadget/inode.c 2006-01-13 00:07:52.000000000 -0800 @@ -1582,7 +1582,7 @@ restart: static struct inode * gadgetfs_create_file (struct super_block *sb, char const *name, - void *data, struct file_operations *fops, + void *data, const struct file_operations *fops, struct dentry **dentry_p); static int activate_ep_files (struct dev_data *dev) @@ -1957,7 +1957,7 @@ module_param (default_perm, uint, 0644); static struct inode * gadgetfs_make_inode (struct super_block *sb, - void *data, struct file_operations *fops, + void *data, const struct file_operations *fops, int mode) { struct inode *inode = new_inode (sb); @@ -1981,7 +1981,7 @@ gadgetfs_make_inode (struct super_block */ static struct inode * gadgetfs_create_file (struct super_block *sb, char const *name, - void *data, struct file_operations *fops, + void *data, const struct file_operations *fops, struct dentry **dentry_p) { struct dentry *dentry; _