Re: [PATCH 2/4] mm: shmem: change shmem_huge_global_enabled() to return huge order bitmap
From: kernel test robot
Date: Fri Nov 08 2024 - 10:12:20 EST
Hi Baolin,
kernel test robot noticed the following build warnings:
[auto build test WARNING on akpm-mm/mm-everything]
[also build test WARNING on next-20241108]
[cannot apply to linus/master v6.12-rc6]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Baolin-Wang/mm-factor-out-the-order-calculation-into-a-new-helper/20241108-121545
base: https://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm.git mm-everything
patch link: https://lore.kernel.org/r/a0d41cdc3491878260277e8c18a3e71deb2bc1fb.1731038280.git.baolin.wang%40linux.alibaba.com
patch subject: [PATCH 2/4] mm: shmem: change shmem_huge_global_enabled() to return huge order bitmap
config: arc-allnoconfig (https://download.01.org/0day-ci/archive/20241108/202411082236.7mwWSsNe-lkp@xxxxxxxxx/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241108/202411082236.7mwWSsNe-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/202411082236.7mwWSsNe-lkp@xxxxxxxxx/
All warnings (new ones prefixed by >>):
>> mm/shmem.c:777:21: warning: 'shmem_huge_global_enabled' defined but not used [-Wunused-function]
777 | static unsigned int shmem_huge_global_enabled(struct inode *inode, pgoff_t index,
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/shmem_huge_global_enabled +777 mm/shmem.c
776
> 777 static unsigned int shmem_huge_global_enabled(struct inode *inode, pgoff_t index,
778 loff_t write_end, bool shmem_huge_force,
779 unsigned long vm_flags)
780 {
781 return 0;
782 }
783 #endif /* CONFIG_TRANSPARENT_HUGEPAGE */
784
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki