All of lore.kernel.org
 help / color / mirror / Atom feed
* [frederic-dynticks:timers/core 6/11] include/linux/tick.h:28:1: warning: no return statement in function returning non-void
@ 2023-12-27  3:58 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-12-27  3:58 UTC (permalink / raw)
  To: Frederic Weisbecker; +Cc: oe-kbuild-all

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/frederic/linux-dynticks.git timers/core
head:   018d96d27486694a8496e3937ac2f7270442c7c3
commit: 0f851847642e32105fa0ace39063fa5018379f8c [6/11] timers: Start centralizing tick related CPU hotplug operations
config: parisc-allmodconfig (https://download.01.org/0day-ci/archive/20231227/202312271122.e6aLJwtY-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231227/202312271122.e6aLJwtY-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/202312271122.e6aLJwtY-lkp@intel.com/

All warnings (new ones prefixed by >>):

   In file included from include/linux/sched/isolation.h:6,
                    from kernel/cpu.c:13:
   include/linux/tick.h: In function 'tick_cpu_dying':
>> include/linux/tick.h:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
      28 | static inline int tick_cpu_dying(unsigned int cpu) { }
         | ^~~~~~
--
   In file included from kernel/irq_work.c:17:
   include/linux/tick.h: In function 'tick_cpu_dying':
>> include/linux/tick.h:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
      28 | static inline int tick_cpu_dying(unsigned int cpu) { }
         | ^~~~~~
   kernel/irq_work.c: At top level:
   kernel/irq_work.c:72:13: warning: no previous prototype for 'arch_irq_work_raise' [-Wmissing-prototypes]
      72 | void __weak arch_irq_work_raise(void)
         |             ^~~~~~~~~~~~~~~~~~~
--
   In file included from kernel/time/hrtimer.c:32:
   include/linux/tick.h: In function 'tick_cpu_dying':
>> include/linux/tick.h:28:1: warning: no return statement in function returning non-void [-Wreturn-type]
      28 | static inline int tick_cpu_dying(unsigned int cpu) { }
         | ^~~~~~
   kernel/time/hrtimer.c: At top level:
   kernel/time/hrtimer.c:120:35: warning: initialized field overwritten [-Woverride-init]
     120 |         [CLOCK_REALTIME]        = HRTIMER_BASE_REALTIME,
         |                                   ^~~~~~~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:120:35: note: (near initialization for 'hrtimer_clock_to_base_table[0]')
   kernel/time/hrtimer.c:121:35: warning: initialized field overwritten [-Woverride-init]
     121 |         [CLOCK_MONOTONIC]       = HRTIMER_BASE_MONOTONIC,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:121:35: note: (near initialization for 'hrtimer_clock_to_base_table[1]')
   kernel/time/hrtimer.c:122:35: warning: initialized field overwritten [-Woverride-init]
     122 |         [CLOCK_BOOTTIME]        = HRTIMER_BASE_BOOTTIME,
         |                                   ^~~~~~~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:122:35: note: (near initialization for 'hrtimer_clock_to_base_table[7]')
   kernel/time/hrtimer.c:123:35: warning: initialized field overwritten [-Woverride-init]
     123 |         [CLOCK_TAI]             = HRTIMER_BASE_TAI,
         |                                   ^~~~~~~~~~~~~~~~
   kernel/time/hrtimer.c:123:35: note: (near initialization for 'hrtimer_clock_to_base_table[11]')


vim +28 include/linux/tick.h

    15	
    16	#ifdef CONFIG_GENERIC_CLOCKEVENTS
    17	extern void __init tick_init(void);
    18	/* Should be core only, but ARM BL switcher requires it */
    19	extern void tick_suspend_local(void);
    20	/* Should be core only, but XEN resume magic and ARM BL switcher require it */
    21	extern void tick_resume_local(void);
    22	extern int tick_cpu_dying(unsigned int cpu);
    23	extern void tick_cleanup_dead_cpu(int cpu);
    24	#else /* CONFIG_GENERIC_CLOCKEVENTS */
    25	static inline void tick_init(void) { }
    26	static inline void tick_suspend_local(void) { }
    27	static inline void tick_resume_local(void) { }
  > 28	static inline int tick_cpu_dying(unsigned int cpu) { }
    29	static inline void tick_cleanup_dead_cpu(int cpu) { }
    30	#endif /* !CONFIG_GENERIC_CLOCKEVENTS */
    31	

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-12-27  3:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-27  3:58 [frederic-dynticks:timers/core 6/11] include/linux/tick.h:28:1: warning: no return statement in function returning non-void kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.