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

kernel test robot
2025-04-11T09:27:54Z

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: hexagon-randconfig-002-20250411 (https://download.01.org/0day-ci/archive/20250411/202504111714.VH8TJ92G-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project f819f46284f2a79790038e1f6649172789734ae8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250411/202504111714.VH8TJ92G-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/202504111714.VH8TJ92G-lkp@intel.com/

All warnings (new ones prefixed by >>):

In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:9:
In file included from include/linux/mm_types.h:16:
In file included from include/linux/uprobes.h:18:
>> include/linux/timer.h:196:83: warning: non-void function does not return a value [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^
1 warning generated.
--
In file included from drivers/spi/spi-pic32-sqi.c:9:
In file included from include/linux/clk.h:14:
In file included from include/linux/notifier.h:16:
In file included from include/linux/srcu.h:21:
In file included from include/linux/workqueue.h:9:
>> include/linux/timer.h:196:83: warning: non-void function does not return a value [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^
drivers/spi/spi-pic32-sqi.c:673:34: warning: unused variable 'pic32_sqi_of_ids' [-Wunused-const-variable]
673 | static const struct of_device_id pic32_sqi_of_ids[] = {
| ^~~~~~~~~~~~~~~~
2 warnings generated.
--
In file included from drivers/spi/spi-orion.c:9:
In file included from include/linux/interrupt.h:11:
In file included from include/linux/hardirq.h:11:
In file included from ./arch/hexagon/include/generated/asm/hardirq.h:1:
In file included from include/asm-generic/hardirq.h:17:
In file included from include/linux/irq.h:19:
In file included from include/linux/topology.h:33:
In file included from include/linux/mmzone.h:22:
In file included from include/linux/mm_types.h:16:
In file included from include/linux/uprobes.h:18:
>> include/linux/timer.h:196:83: warning: non-void function does not return a value [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^
drivers/spi/spi-orion.c:614:34: warning: unused variable 'orion_spi_of_match_table' [-Wunused-const-variable]
614 | static const struct of_device_id orion_spi_of_match_table[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
--
In file included from drivers/spi/spi-pic32.c:9:
In file included from include/linux/clk.h:14:
In file included from include/linux/notifier.h:16:
In file included from include/linux/srcu.h:21:
In file included from include/linux/workqueue.h:9:
>> include/linux/timer.h:196:83: warning: non-void function does not return a value [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^
drivers/spi/spi-pic32.c:850:34: warning: unused variable 'pic32_spi_of_match' [-Wunused-const-variable]
850 | static const struct of_device_id pic32_spi_of_match[] = {
| ^~~~~~~~~~~~~~~~~~
2 warnings generated.
--
In file included from drivers/spi/spi-armada-3700.c:11:
In file included from include/linux/clk.h:14:
In file included from include/linux/notifier.h:16:
In file included from include/linux/srcu.h:21:
In file included from include/linux/workqueue.h:9:
>> include/linux/timer.h:196:83: warning: non-void function does not return a value [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^
drivers/spi/spi-armada-3700.c:806:34: warning: unused variable 'a3700_spi_dt_ids' [-Wunused-const-variable]
806 | static const struct of_device_id a3700_spi_dt_ids[] = {
| ^~~~~~~~~~~~~~~~
2 warnings generated.
--
In file included from drivers/spi/spi-rockchip.c:7:
In file included from include/linux/clk.h:14:
In file included from include/linux/notifier.h:16:
In file included from include/linux/srcu.h:21:
In file included from include/linux/workqueue.h:9:
>> include/linux/timer.h:196:83: warning: non-void function does not return a value [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^
drivers/spi/spi-rockchip.c:1024:34: warning: unused variable 'rockchip_spi_dt_match' [-Wunused-const-variable]
1024 | static const struct of_device_id rockchip_spi_dt_match[] = {
| ^~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
--
In file included from drivers/spi/spi-s3c64xx.c:8:
In file included from include/linux/clk.h:14:
In file included from include/linux/notifier.h:16:
In file included from include/linux/srcu.h:21:
In file included from include/linux/workqueue.h:9:
>> include/linux/timer.h:196:83: warning: non-void function does not return a value [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^
drivers/spi/spi-s3c64xx.c:1644:34: warning: unused variable 's3c64xx_spi_dt_match' [-Wunused-const-variable]
1644 | static const struct of_device_id s3c64xx_spi_dt_match[] = {
| ^~~~~~~~~~~~~~~~~~~~
2 warnings generated.
--
In file included from drivers/spi/spi-meson-spifc.c:8:
In file included from include/linux/clk.h:14:
In file included from include/linux/notifier.h:16:
In file included from include/linux/srcu.h:21:
In file included from include/linux/workqueue.h:9:
>> include/linux/timer.h:196:83: warning: non-void function does not return a value [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^
drivers/spi/spi-meson-spifc.c:423:34: warning: unused variable 'meson_spifc_dt_match' [-Wunused-const-variable]
423 | static const struct of_device_id meson_spifc_dt_match[] = {
| ^~~~~~~~~~~~~~~~~~~~
2 warnings generated.
--
In file included from arch/hexagon/kernel/asm-offsets.c:12:
In file included from include/linux/compat.h:15:
In file included from include/linux/socket.h:8:
In file included from include/linux/uio.h:9:
In file included from include/linux/mm_types.h:16:
In file included from include/linux/uprobes.h:18:
>> include/linux/timer.h:196:83: warning: non-void function does not return a value [-Wreturn-type]
196 | static inline int tmigr_isolated_exclude_cpumask(cpumask_var_t exclude_cpumask) { }
| ^
1 warning generated.

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