tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git idle-tick head: 8ea6e4458a59dc0edcd43078fd8bc7c8d2c649ff commit: 9ae50b1e0f7653cb22718b353dbd435cb3cd64cc [5/8] cpuidle: Return nohz hint from cpuidle_select() config: x86_64-randconfig-x010-201811 (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: git checkout 9ae50b1e0f7653cb22718b353dbd435cb3cd64cc # save the attached .config to linux build tree make ARCH=x86_64 All warnings (new ones prefixed by >>): In file included from drivers/acpi/processor_idle.c:32:0: include/linux/tick.h: In function 'tick_nohz_idle_got_tick': >> include/linux/tick.h:143:1: warning: no return statement in function returning non-void [-Wreturn-type] static inline bool tick_nohz_idle_got_tick(void) { } ^~~~~~ -- In file included from drivers/cpuidle/governors/menu.c:19:0: include/linux/tick.h: In function 'tick_nohz_idle_got_tick': >> include/linux/tick.h:143:1: warning: no return statement in function returning non-void [-Wreturn-type] static inline bool tick_nohz_idle_got_tick(void) { } ^~~~~~ drivers/cpuidle/governors/menu.c: In function 'menu_select': >> drivers/cpuidle/governors/menu.c:503:40: warning: 'measured_us' may be used uninitialized in this function [-Wmaybe-uninitialized] data->intervals[data->interval_ptr++] = measured_us; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ drivers/cpuidle/governors/menu.c:434:15: note: 'measured_us' was declared here unsigned int measured_us; ^~~~~~~~~~~ -- In file included from drivers//cpuidle/governors/menu.c:19:0: include/linux/tick.h: In function 'tick_nohz_idle_got_tick': >> include/linux/tick.h:143:1: warning: no return statement in function returning non-void [-Wreturn-type] static inline bool tick_nohz_idle_got_tick(void) { } ^~~~~~ drivers//cpuidle/governors/menu.c: In function 'menu_select': drivers//cpuidle/governors/menu.c:503:40: warning: 'measured_us' may be used uninitialized in this function [-Wmaybe-uninitialized] data->intervals[data->interval_ptr++] = measured_us; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ drivers//cpuidle/governors/menu.c:434:15: note: 'measured_us' was declared here unsigned int measured_us; ^~~~~~~~~~~ vim +143 include/linux/tick.h 135 136 #else /* !CONFIG_NO_HZ_COMMON */ 137 #define tick_nohz_enabled (0) 138 static inline int tick_nohz_tick_stopped(void) { return 0; } 139 static inline void tick_nohz_idle_stop_tick(void) { } 140 static inline void tick_nohz_idle_restart_tick(void) { } 141 static inline void tick_nohz_idle_enter(void) { } 142 static inline void tick_nohz_idle_exit(void) { } > 143 static inline bool tick_nohz_idle_got_tick(void) { } 144 --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip