* [android-common:android15-6.6 1/1] kernel/time/tick-sched.c:212:12: warning: 'tick_cpu' is used uninitialized
@ 2024-08-23 20:32 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-08-23 20:32 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android15-6.6
head: 8da6283ef36c5c684bcfdd59631aba622c11749c
commit: a94ba5ab288780f141d741107751b4866bc24be3 [1/1] BACKPORT: timekeeping: Use READ/WRITE_ONCE() for tick_do_timer_cpu
config: i386-buildonly-randconfig-003-20240823 (https://download.01.org/0day-ci/archive/20240824/202408240419.ZDf9fwVP-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240824/202408240419.ZDf9fwVP-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/202408240419.ZDf9fwVP-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/time/tick-sched.c: In function 'tick_sched_do_timer':
>> kernel/time/tick-sched.c:212:12: warning: 'tick_cpu' is used uninitialized [-Wuninitialized]
212 | if (tick_cpu == cpu) {
| ^
kernel/time/tick-sched.c:188:13: note: 'tick_cpu' was declared here
188 | int tick_cpu, cpu = smp_processor_id();
| ^~~~~~~~
vim +/tick_cpu +212 kernel/time/tick-sched.c
210
211 /* Check, if the jiffies need an update */
> 212 if (tick_cpu == cpu) {
213 tick_do_update_jiffies64(now);
214 trace_android_vh_jiffies_update(NULL);
215 }
216
217 /*
218 * If jiffies update stalled for too long (timekeeper in stop_machine()
219 * or VMEXIT'ed for several msecs), force an update.
220 */
221 if (ts->last_tick_jiffies != jiffies) {
222 ts->stalled_jiffies = 0;
223 ts->last_tick_jiffies = READ_ONCE(jiffies);
224 } else {
225 if (++ts->stalled_jiffies == MAX_STALLED_JIFFIES) {
226 tick_do_update_jiffies64(now);
227 ts->stalled_jiffies = 0;
228 ts->last_tick_jiffies = READ_ONCE(jiffies);
229 }
230 }
231
232 if (ts->inidle)
233 ts->got_idle_tick = 1;
234 }
235
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* [android-common:android15-6.6 1/1] kernel/time/tick-sched.c:212:12: warning: 'tick_cpu' is used uninitialized
@ 2025-12-21 5:52 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-21 5:52 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi Thomas,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android15-6.6
head: 16aa689262af24cd0897f463b3d0dd9ecee6b37c
commit: a94ba5ab288780f141d741107751b4866bc24be3 [1/1] BACKPORT: timekeeping: Use READ/WRITE_ONCE() for tick_do_timer_cpu
config: x86_64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20251221/202512210629.02xLGyoN-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251221/202512210629.02xLGyoN-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/202512210629.02xLGyoN-lkp@intel.com/
All warnings (new ones prefixed by >>):
kernel/time/tick-sched.c: In function 'tick_sched_do_timer':
>> kernel/time/tick-sched.c:212:12: warning: 'tick_cpu' is used uninitialized [-Wuninitialized]
212 | if (tick_cpu == cpu) {
| ^
kernel/time/tick-sched.c:188:13: note: 'tick_cpu' was declared here
188 | int tick_cpu, cpu = smp_processor_id();
| ^~~~~~~~
vim +/tick_cpu +212 kernel/time/tick-sched.c
210
211 /* Check, if the jiffies need an update */
> 212 if (tick_cpu == cpu) {
213 tick_do_update_jiffies64(now);
214 trace_android_vh_jiffies_update(NULL);
215 }
216
217 /*
218 * If jiffies update stalled for too long (timekeeper in stop_machine()
219 * or VMEXIT'ed for several msecs), force an update.
220 */
221 if (ts->last_tick_jiffies != jiffies) {
222 ts->stalled_jiffies = 0;
223 ts->last_tick_jiffies = READ_ONCE(jiffies);
224 } else {
225 if (++ts->stalled_jiffies == MAX_STALLED_JIFFIES) {
226 tick_do_update_jiffies64(now);
227 ts->stalled_jiffies = 0;
228 ts->last_tick_jiffies = READ_ONCE(jiffies);
229 }
230 }
231
232 if (ts->inidle)
233 ts->got_idle_tick = 1;
234 }
235
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-21 5:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-23 20:32 [android-common:android15-6.6 1/1] kernel/time/tick-sched.c:212:12: warning: 'tick_cpu' is used uninitialized kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2025-12-21 5:52 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.