[tip:WIP.timers 8/10] kernel/time/timer_migration.h:26:1: warning: no return statement in function returning non-void
From: kbuild test robot
Date: Mon Apr 17 2017 - 17:29:47 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git WIP.timers
head: c0b7a5dbb870d1660aa5e566c5ce9972290a2bed
commit: 6a3164fa4cd35a587b5bb2e4bd86b75900af8286 [8/10] timer: Implement the hierarchical pull model
config: x86_64-randconfig-x012-201716 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
git checkout 6a3164fa4cd35a587b5bb2e4bd86b75900af8286
# save the attached .config to linux build tree
make ARCH=x86_64
All warnings (new ones prefixed by >>):
In file included from kernel/time/timer.c:54:0:
kernel/time/timer_migration.h: In function 'tmigr_cpu_idle':
>> kernel/time/timer_migration.h:26:1: warning: no return statement in function returning non-void [-Wreturn-type]
static inline u64 tmigr_cpu_idle(u64 nextevt) { }
^~~~~~
vim +26 kernel/time/timer_migration.h
10 #define _KERNEL_TIME_MIGRATION_H
11
12 #ifdef CONFIG_NO_HZ_COMMON
13 extern bool tmigr_enabled;
14 void tmigr_init(void);
15 #else
16 static inline void tmigr_init(void) { }
17 #endif
18
19 #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON)
20 extern void tmigr_handle_remote(void);
21 extern u64 tmigr_cpu_idle(u64 nextevt);
22 extern void tmigr_cpu_activate(void);
23 extern void timer_expire_remote(unsigned int cpu);
24 #else
25 static inline void tmigr_handle_remote(void) { }
> 26 static inline u64 tmigr_cpu_idle(u64 nextevt) { }
27 static inline void tmigr_cpu_activate(void) { }
28 #endif
29
30 #define TMIGR_NONE (~0U)
31
32 /**
33 * struct tmigr_event - A timer event associated to a CPU or a group
34 * @nextevt: The node to enqueue an event in the group queue
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip