diff options
Diffstat (limited to 'drivers/oprofile/oprofilefs.c')
| -rw-r--r-- | drivers/oprofile/oprofilefs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/oprofile/oprofilefs.c b/drivers/oprofile/oprofilefs.c index d6bae699749a..b62da9b0cbf0 100644 --- a/drivers/oprofile/oprofilefs.c +++ b/drivers/oprofile/oprofilefs.c | |||
| @@ -130,7 +130,7 @@ static struct file_operations ulong_ro_fops = { | |||
| 130 | 130 | ||
| 131 | 131 | ||
| 132 | static struct dentry * __oprofilefs_create_file(struct super_block * sb, | 132 | static struct dentry * __oprofilefs_create_file(struct super_block * sb, |
| 133 | struct dentry * root, char const * name, struct file_operations * fops, | 133 | struct dentry * root, char const * name, const struct file_operations * fops, |
| 134 | int perm) | 134 | int perm) |
| 135 | { | 135 | { |
| 136 | struct dentry * dentry; | 136 | struct dentry * dentry; |
| @@ -203,7 +203,7 @@ int oprofilefs_create_ro_atomic(struct super_block * sb, struct dentry * root, | |||
| 203 | 203 | ||
| 204 | 204 | ||
| 205 | int oprofilefs_create_file(struct super_block * sb, struct dentry * root, | 205 | int oprofilefs_create_file(struct super_block * sb, struct dentry * root, |
| 206 | char const * name, struct file_operations * fops) | 206 | char const * name, const struct file_operations * fops) |
| 207 | { | 207 | { |
| 208 | if (!__oprofilefs_create_file(sb, root, name, fops, 0644)) | 208 | if (!__oprofilefs_create_file(sb, root, name, fops, 0644)) |
| 209 | return -EFAULT; | 209 | return -EFAULT; |
| @@ -212,7 +212,7 @@ int oprofilefs_create_file(struct super_block * sb, struct dentry * root, | |||
| 212 | 212 | ||
| 213 | 213 | ||
| 214 | int oprofilefs_create_file_perm(struct super_block * sb, struct dentry * root, | 214 | int oprofilefs_create_file_perm(struct super_block * sb, struct dentry * root, |
| 215 | char const * name, struct file_operations * fops, int perm) | 215 | char const * name, const struct file_operations * fops, int perm) |
| 216 | { | 216 | { |
| 217 | if (!__oprofilefs_create_file(sb, root, name, fops, perm)) | 217 | if (!__oprofilefs_create_file(sb, root, name, fops, perm)) |
| 218 | return -EFAULT; | 218 | return -EFAULT; |
