mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +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
|
@ -1000,7 +1000,7 @@ EXPORT_SYMBOL(remove_inode_hash);
|
|||
*/
|
||||
void generic_delete_inode(struct inode *inode)
|
||||
{
|
||||
struct super_operations *op = inode->i_sb->s_op;
|
||||
const struct super_operations *op = inode->i_sb->s_op;
|
||||
|
||||
list_del_init(&inode->i_list);
|
||||
list_del_init(&inode->i_sb_list);
|
||||
|
@ -1093,7 +1093,7 @@ EXPORT_SYMBOL_GPL(generic_drop_inode);
|
|||
*/
|
||||
static inline void iput_final(struct inode *inode)
|
||||
{
|
||||
struct super_operations *op = inode->i_sb->s_op;
|
||||
const struct super_operations *op = inode->i_sb->s_op;
|
||||
void (*drop)(struct inode *) = generic_drop_inode;
|
||||
|
||||
if (op && op->drop_inode)
|
||||
|
@ -1113,7 +1113,7 @@ static inline void iput_final(struct inode *inode)
|
|||
void iput(struct inode *inode)
|
||||
{
|
||||
if (inode) {
|
||||
struct super_operations *op = inode->i_sb->s_op;
|
||||
const struct super_operations *op = inode->i_sb->s_op;
|
||||
|
||||
BUG_ON(inode->i_state == I_CLEAR);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue