Re: [PATCH v2 07/10] mm/shmem_luo: Retrieve tmpfs files onto a tmpfs mount chosen by userspace

From: kernel test robot

Date: Tue Oct 27 2026 - 01:04:43 EST


Hi David,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 80cf37169daef112b6bea9ae7d9808355a045475]

url: https://github.com/intel-lab-lkp/linux/commits/David-Matlack/liveupdate-Pass-user-argument-to-file-preserve-and-retrieve/20261022-225026
base: 80cf37169daef112b6bea9ae7d9808355a045475
patch link: https://lore.kernel.org/r/20261022225035.377445-8-dmatlack%40google.com
patch subject: [PATCH v2 07/10] mm/shmem_luo: Retrieve tmpfs files onto a tmpfs mount chosen by userspace
config: arm-allnoconfig (https://download.01.org/0day-ci/archive/20261027/202610271253.yDB2IOkw-lkp@xxxxxxxxx/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261027/202610271253.yDB2IOkw-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202610271253.yDB2IOkw-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> mm/shmem.c:5867:6: warning: no previous prototype for function 'shmem_inode_on_internal_mount' [-Wmissing-prototypes]
5867 | bool shmem_inode_on_internal_mount(const struct inode *inode)
| ^
mm/shmem.c:5867:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
5867 | bool shmem_inode_on_internal_mount(const struct inode *inode)
| ^
| static
1 warning generated.


vim +/shmem_inode_on_internal_mount +5867 mm/shmem.c

5862
5863 /*
5864 * Whether @inode is on the internal shmem mount, which is used by
5865 * shmem_file_setup() and thus by memfd_create().
5866 */
> 5867 bool shmem_inode_on_internal_mount(const struct inode *inode)
5868 {
5869 return inode->i_sb == shm_mnt->mnt_sb;
5870 }
5871

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki