]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
mm/secretmem: secretmem_iops can be static
authorkernel test robot <lkp@intel.com>
Thu, 14 Apr 2022 06:06:50 +0000 (23:06 -0700)
committerakpm <akpm@linux-foundation.org>
Thu, 14 Apr 2022 06:06:50 +0000 (23:06 -0700)
mm/secretmem.c:173:31: warning: symbol 'secretmem_iops' was not declared. Should it be static?

Link: https://lkml.kernel.org/r/YkXc0RjJYQoGZZ8A@57de4820519d
Fixes: 24209f2f4d62 ("mm/secretmem: fix panic when growing a memfd_secret")
Signed-off-by: kernel test robot <lkp@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Cc: Axel Rasmussen <axelrasmussen@google.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Mike Rapoport <rppt@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/secretmem.c

index a83e98aa3a7b3858f9a7e2ad38f4543fcbb79fbe..ddf45c0435be7df0d7d32e58cc820d34988472b3 100644 (file)
@@ -170,7 +170,7 @@ static int secretmem_setattr(struct user_namespace *mnt_userns,
        return simple_setattr(mnt_userns, dentry, iattr);
 }
 
-const struct inode_operations secretmem_iops = {
+static const struct inode_operations secretmem_iops = {
        .setattr = secretmem_setattr,
 };