diff options
| author | Arnd Bergmann <[email protected]> | 2018-04-09 12:23:33 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2018-04-10 07:18:04 +0000 |
| commit | bbe9a70a478129f3f9b2003415d0c36afcea210f (patch) | |
| tree | e69c1d48fbe29e0e7d1d11270966e78f75b177c3 /fs/proc/array.c | |
| parent | cpuidle: Add definition of residency to sysfs documentation (diff) | |
| download | kernel-bbe9a70a478129f3f9b2003415d0c36afcea210f.tar.gz kernel-bbe9a70a478129f3f9b2003415d0c36afcea210f.zip | |
tick-sched: avoid a maybe-uninitialized warning
The use of bitfields seems to confuse gcc, leading to a false-positive
warning in all compiler versions:
kernel/time/tick-sched.c: In function 'tick_nohz_idle_exit':
kernel/time/tick-sched.c:538:2: error: 'now' may be used uninitialized in this function [-Werror=maybe-uninitialized]
This introduces a temporary variable to track the flags so gcc
doesn't have to evaluate twice, eliminating the code path that
leads to the warning.
Link: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85301
Fixes: 1cae544d42d2 ("nohz: Gather tick_sched booleans under a common flag field")
Signed-off-by: Arnd Bergmann <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions
