Re: [PATCH tip 2/3] sched: make migrate_enable/migrate_disable inline

From: kernel test robot
Date: Sun Aug 10 2025 - 00:53:51 EST


Hi Menglong,

kernel test robot noticed the following build warnings:

[auto build test WARNING on tip/master]

url: https://github.com/intel-lab-lkp/linux/commits/Menglong-Dong/arch-add-the-macro-COMPILE_OFFSETS-to-all-the-asm-offsets-c/20250810-110846
base: tip/master
patch link: https://lore.kernel.org/r/20250810030442.246974-3-dongml2%40chinatelecom.cn
patch subject: [PATCH tip 2/3] sched: make migrate_enable/migrate_disable inline
config: arc-randconfig-001-20250810 (https://download.01.org/0day-ci/archive/20250810/202508101230.2KBZa0Ql-lkp@xxxxxxxxx/config)
compiler: arc-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250810/202508101230.2KBZa0Ql-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/202508101230.2KBZa0Ql-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> kernel/sched/core.c:2385:6: warning: no previous prototype for '__migrate_enable' [-Wmissing-prototypes]
void __migrate_enable(void)
^~~~~~~~~~~~~~~~


vim +/__migrate_enable +2385 kernel/sched/core.c

2384
> 2385 void __migrate_enable(void)
2386 {
2387 struct task_struct *p = current;
2388 struct affinity_context ac = {
2389 .new_mask = &p->cpus_mask,
2390 .flags = SCA_MIGRATE_ENABLE,
2391 };
2392
2393 __set_cpus_allowed_ptr(p, &ac);
2394 }
2395 EXPORT_SYMBOL_GPL(__migrate_enable);
2396

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