Re: [PATCH 01/15] mm: various small mmap_prepare cleanups

kernel test robot
2026-03-13T08:01:25Z

Hi Lorenzo,

kernel test robot noticed the following build warnings:

[auto build test WARNING on next-20260311]
[cannot apply to akpm-mm/mm-everything char-misc/char-misc-testing char-misc/char-misc-next char-misc/char-misc-linus brauner-vfs/vfs.all linus/master v7.0-rc3 v7.0-rc2 v7.0-rc1 v6.16-rc1]
[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/Lorenzo-Stoakes-Oracle/mm-various-small-mmap_prepare-cleanups/20260313-113314
base: next-20260311
patch link: https://lore.kernel.org/r/56372fe273f775b26675a04652c1229e14680741.1773346620.git.ljs%40kernel.org
patch subject: [PATCH 01/15] mm: various small mmap_prepare cleanups
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260313/202603130825.eFqVjdWW-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260313/202603130825.eFqVjdWW-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603130825.eFqVjdWW-lkp@intel.com/

All warnings (new ones prefixed by >>):

mm/util.c: In function 'mmap_action_prepare':
>> mm/util.c:1360:1: warning: control reaches end of non-void function [-Wreturn-type]
1360 | }
| ^

vim +1360 mm/util.c

ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1338
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1339 #ifdef CONFIG_MMU
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1340 /**
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1341 * mmap_action_prepare - Perform preparatory setup for an VMA descriptor
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1342 * action which need to be performed.
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1343 * @desc: The VMA descriptor to prepare for @action.
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1344 * @action: The action to perform.
732e4e2690c96d Lorenzo Stoakes (Oracle 2026-03-12 1345) *
732e4e2690c96d Lorenzo Stoakes (Oracle 2026-03-12 1346) * Returns: 0 on success, otherwise error.
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1347 */
732e4e2690c96d Lorenzo Stoakes (Oracle 2026-03-12 1348) int mmap_action_prepare(struct vm_area_desc *desc,
732e4e2690c96d Lorenzo Stoakes (Oracle 2026-03-12 1349) struct mmap_action *action)
732e4e2690c96d Lorenzo Stoakes (Oracle 2026-03-12 1350)
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1351 {
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1352 switch (action->type) {
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1353 case MMAP_NOTHING:
732e4e2690c96d Lorenzo Stoakes (Oracle 2026-03-12 1354) return 0;
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1355 case MMAP_REMAP_PFN:
732e4e2690c96d Lorenzo Stoakes (Oracle 2026-03-12 1356) return remap_pfn_range_prepare(desc, action);
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1357 case MMAP_IO_REMAP_PFN:
732e4e2690c96d Lorenzo Stoakes (Oracle 2026-03-12 1358) return io_remap_pfn_range_prepare(desc, action);
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1359 }
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 @1360 }
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1361 EXPORT_SYMBOL(mmap_action_prepare);
ac0a3fc9c07df7 Lorenzo Stoakes 2025-10-20 1362

--
0-DAY CI Kernel Test Service