From 9a33ee362e674256e2113ffcb7996a6bfb0a9f1d Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 17 Aug 2022 10:04:52 -0700 Subject: [PATCH] procfs-add-path-to-proc-pid-fdinfo-fix warning: Local variable 'anon_aops' shadows outer variable Reported-by: kernel test robot Cc: Kalesh Singh Signed-off-by: Andrew Morton --- fs/libfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/libfs.c b/fs/libfs.c index 6911749b4da7..a308284c072d 100644 --- a/fs/libfs.c +++ b/fs/libfs.c @@ -1228,7 +1228,7 @@ bool is_anon_inode(struct inode *inode) struct inode *alloc_anon_inode(struct super_block *s) { - static const struct address_space_operations anon_aops = { + static const struct address_space_operations aops = { .dirty_folio = noop_dirty_folio, }; struct inode *inode = new_inode_pseudo(s); @@ -1237,7 +1237,7 @@ struct inode *alloc_anon_inode(struct super_block *s) return ERR_PTR(-ENOMEM); inode->i_ino = get_next_ino(); - inode->i_mapping->a_ops = &anon_aops; + inode->i_mapping->a_ops = &aops; /* * Mark the inode dirty from the very beginning, -- 2.50.1