Re: [PATCH] timers: Exclude isolated cpus from timer migation

kernel test robot
2025-04-11T07:12:47Z

Hi Gabriele,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 3b07108ada81a8ebcebf1fe61367b4e436c895bd]

url: https://github.com/intel-lab-lkp/linux/commits/Gabriele-Monaco/timers-Exclude-isolated-cpus-from-timer-migation/20250410-145629
base: 3b07108ada81a8ebcebf1fe61367b4e436c895bd
patch link: https://lore.kernel.org/r/20250410065446.57304-2-gmonaco%40redhat.com
patch subject: [PATCH] timers: Exclude isolated cpus from timer migation
config: csky-randconfig-001-20250411 (https://download.01.org/0day-ci/archive/20250411/202504111433.IwFLpkrz-lkp@intel.com/config)
compiler: csky-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250411/202504111433.IwFLpkrz-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/202504111433.IwFLpkrz-lkp@intel.com/

All warnings (new ones prefixed by >>):

In file included from include/linux/uprobes.h:18,
from include/linux/mm_types.h:16,
from include/linux/mmzone.h:22,
from include/linux/topology.h:33,
from include/linux/irq.h:19,
from include/asm-generic/hardirq.h:17,
from ./arch/csky/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:8,
from arch/csky/kernel/asm-offsets.c:5:
include/linux/timer.h: In function 'tmigr_isolated_exclude_cpumask':
>> include/linux/timer.h:196:1: warning: no return statement in function returning non-void [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^~~~~~
--
In file included from include/linux/uprobes.h:18,
from include/linux/mm_types.h:16,
from include/linux/mmzone.h:22,
from include/linux/topology.h:33,
from include/linux/irq.h:19,
from include/asm-generic/hardirq.h:17,
from ./arch/csky/include/generated/asm/hardirq.h:1,
from include/linux/hardirq.h:11,
from include/linux/interrupt.h:11,
from include/linux/kernel_stat.h:8,
from arch/csky/kernel/asm-offsets.c:5:
include/linux/timer.h: In function 'tmigr_isolated_exclude_cpumask':
>> include/linux/timer.h:196:1: warning: no return statement in function returning non-void [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^~~~~~

vim +196 include/linux/timer.h

192
193 #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON)
194 extern int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask);
195 #else
> 196 static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
197 #endif
198

--
0-DAY CI Kernel Test Service