mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
[PATCH] mark f_ops const in the inode
Mark the f_ops members of inodes as const, as well as fix the ripple-through this causes by places that copy this f_ops and then "do stuff" with it. Signed-off-by: Arjan van de Ven <[email protected]> Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
ec1b9466cb
commit
99ac48f54a
42 changed files with 75 additions and 74 deletions
|
|
@ -130,7 +130,7 @@ static struct file_operations ulong_ro_fops = {
|
|||
|
||||
|
||||
static struct dentry * __oprofilefs_create_file(struct super_block * sb,
|
||||
struct dentry * root, char const * name, struct file_operations * fops,
|
||||
struct dentry * root, char const * name, const struct file_operations * fops,
|
||||
int perm)
|
||||
{
|
||||
struct dentry * dentry;
|
||||
|
|
@ -203,7 +203,7 @@ int oprofilefs_create_ro_atomic(struct super_block * sb, struct dentry * root,
|
|||
|
||||
|
||||
int oprofilefs_create_file(struct super_block * sb, struct dentry * root,
|
||||
char const * name, struct file_operations * fops)
|
||||
char const * name, const struct file_operations * fops)
|
||||
{
|
||||
if (!__oprofilefs_create_file(sb, root, name, fops, 0644))
|
||||
return -EFAULT;
|
||||
|
|
@ -212,7 +212,7 @@ int oprofilefs_create_file(struct super_block * sb, struct dentry * root,
|
|||
|
||||
|
||||
int oprofilefs_create_file_perm(struct super_block * sb, struct dentry * root,
|
||||
char const * name, struct file_operations * fops, int perm)
|
||||
char const * name, const struct file_operations * fops, int perm)
|
||||
{
|
||||
if (!__oprofilefs_create_file(sb, root, name, fops, perm))
|
||||
return -EFAULT;
|
||||
|
|
|
|||
Loading…
Reference in a new issue