tree: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-cpuidle head: ebbb6f6e7970749cf965fa74337be23fb36222e6 commit: 8b8da2142e1e02ec72c00f889b8e0ed690f58fab [11/12] nohz: Gather tick_sched booleans under a common flag field config: x86_64-randconfig-x009-201813 (attached as .config) compiler: gcc-7 (Debian 7.3.0-1) 7.3.0 reproduce: git checkout 8b8da2142e1e02ec72c00f889b8e0ed690f58fab # save the attached .config to linux build tree make ARCH=x86_64 Note: it may well be a FALSE warning. FWIW you are at least aware of it now. http://gcc.gnu.org/wiki/Better_Uninitialized_Warnings All warnings (new ones prefixed by >>): kernel/time/tick-sched.c: In function 'tick_nohz_idle_exit': >> kernel/time/tick-sched.c:527:2: warning: 'now' may be used uninitialized in this function [-Wmaybe-uninitialized] update_ts_time_stats(smp_processor_id(), ts, now, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ kernel/time/tick-sched.c:1135:10: note: 'now' was declared here ktime_t now; ^~~ vim +/now +527 kernel/time/tick-sched.c 595aac48 Arjan van de Ven 2010-05-09 524 e8fcaa5c Frederic Weisbecker 2013-08-07 525 static void tick_nohz_stop_idle(struct tick_sched *ts, ktime_t now) 595aac48 Arjan van de Ven 2010-05-09 526 { e8fcaa5c Frederic Weisbecker 2013-08-07 @527 update_ts_time_stats(smp_processor_id(), ts, now, NULL); 6378ddb5 Venki Pallipadi 2008-01-30 528 ts->idle_active = 0; 56c7426b Peter Zijlstra 2008-09-01 529 ac1e843f Peter Zijlstra 2017-04-21 530 sched_clock_idle_wakeup_event(); 6378ddb5 Venki Pallipadi 2008-01-30 531 } 6378ddb5 Venki Pallipadi 2008-01-30 532 :::::: The code at line 527 was first introduced by commit :::::: e8fcaa5c54e3b0371230e5d43a6f650c667da9c5 nohz: Convert a few places to use local per cpu accesses :::::: TO: Frederic Weisbecker <fweisbec@xxxxxxxxx> :::::: CC: Frederic Weisbecker <fweisbec@xxxxxxxxx> --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip