]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
procfs-add-path-to-proc-pid-fdinfo-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 17 Aug 2022 17:04:52 +0000 (10:04 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 26 Aug 2022 05:02:40 +0000 (22:02 -0700)
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

index 6911749b4da79dea0252bb28892b43c7b6cb8d76..a308284c072dff7b336bbcaf0065235d0114303d 100644 (file)
@@ -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,