[tip:x86/timers 10/13] arch/x86/include/asm/tsc.h:55:1: warning: no return statement in function returning non-void

From: kbuild test robot
Date: Tue Nov 29 2016 - 14:28:02 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/timers
head: 950e7481b09cd3f426a9322b0f35139224660c0d
commit: ba75fb64693127c7b6e8a822c68d3480cbf56d6d [10/13] x86/tsc: Sync test only for the first cpu in a package
config: i386-randconfig-i0-201648 (attached as .config)
compiler: gcc-4.8 (Debian 4.8.4-1) 4.8.4
reproduce:
git checkout ba75fb64693127c7b6e8a822c68d3480cbf56d6d
# save the attached .config to linux build tree
make ARCH=i386

All warnings (new ones prefixed by >>):

In file included from arch/x86/include/asm/timex.h:5:0,
from include/linux/timex.h:65,
from include/linux/jiffies.h:8,
from include/linux/ktime.h:25,
from include/linux/rcupdate.h:47,
from include/linux/srcu.h:33,
from include/linux/notifier.h:15,
from include/linux/memory_hotplug.h:6,
from include/linux/mmzone.h:751,
from include/linux/gfp.h:5,
from include/linux/slab.h:14,
from include/linux/crypto.h:24,
from arch/x86/kernel/asm-offsets.c:8:
arch/x86/include/asm/tsc.h: In function 'tsc_store_and_check_tsc_adjust':
>> arch/x86/include/asm/tsc.h:55:1: warning: no return statement in function returning non-void [-Wreturn-type]
static inline bool tsc_store_and_check_tsc_adjust(void) { }
^

vim +55 arch/x86/include/asm/tsc.h

39 extern unsigned long native_calibrate_tsc(void);
40 extern unsigned long long native_sched_clock_from_tsc(u64 tsc);
41
42 extern int tsc_clocksource_reliable;
43
44 /*
45 * Boot-time check whether the TSCs are synchronized across
46 * all CPUs/cores:
47 */
48 extern void check_tsc_sync_source(int cpu);
49 extern void check_tsc_sync_target(void);
50
51 #ifdef CONFIG_X86_TSC
52 extern bool tsc_store_and_check_tsc_adjust(void);
53 extern void tsc_verify_tsc_adjust(void);
54 #else
> 55 static inline bool tsc_store_and_check_tsc_adjust(void) { }
56 static inline void tsc_verify_tsc_adjust(void) { }
57 #endif
58
59 extern int notsc_setup(char *);
60 extern void tsc_save_sched_clock_state(void);
61 extern void tsc_restore_sched_clock_state(void);
62
63 unsigned long cpu_khz_from_msr(void);

---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation

Attachment: .config.gz
Description: application/gzip