| From: Andrew Morton <akpm@linux-foundation.org> |
| Subject: procfs-add-path-to-proc-pid-fdinfo-fix |
| Date: Wed Aug 17 10:04:52 AM PDT 2022 |
| |
| warning: Local variable 'anon_aops' shadows outer variable |
| |
| Reported-by: kernel test robot <lkp@intel.com> |
| Cc: Kalesh Singh <kaleshsingh@google.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| fs/libfs.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| --- a/fs/libfs.c~procfs-add-path-to-proc-pid-fdinfo-fix |
| +++ a/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 su |
| 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, |
| _ |