mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 06:01:23 +00:00
[PATCH] Mark struct super_operations const
This patch is inspired by Arjan's "Patch series to mark struct file_operations and struct inode_operations const". Compile tested with gcc & sparse. Signed-off-by: Josef 'Jeff' Sipek <jsipek@cs.sunysb.edu> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
c5ef1c42c5
commit
ee9b6d61a2
58 changed files with 75 additions and 75 deletions
|
@ -907,7 +907,7 @@ struct super_block {
|
|||
unsigned char s_dirt;
|
||||
unsigned long long s_maxbytes; /* Max file size */
|
||||
struct file_system_type *s_type;
|
||||
struct super_operations *s_op;
|
||||
const struct super_operations *s_op;
|
||||
struct dquot_operations *dq_op;
|
||||
struct quotactl_ops *s_qcop;
|
||||
struct export_operations *s_export_op;
|
||||
|
@ -1383,7 +1383,7 @@ struct super_block *sget(struct file_system_type *type,
|
|||
int (*set)(struct super_block *,void *),
|
||||
void *data);
|
||||
extern int get_sb_pseudo(struct file_system_type *, char *,
|
||||
struct super_operations *ops, unsigned long,
|
||||
const struct super_operations *ops, unsigned long,
|
||||
struct vfsmount *mnt);
|
||||
extern int simple_set_mnt(struct vfsmount *mnt, struct super_block *sb);
|
||||
int __put_super(struct super_block *sb);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue