diff options
author | Borislav Petkov <bp@suse.de> | 2020-03-27 22:43:34 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-04-15 11:06:50 +0200 |
commit | e0d648f9d883ec1efab261af158d73aa30e9dd12 (patch) | |
tree | d75221bdb0f120d41e3518bb7ca7665a465e5c29 /.clang-format | |
parent | 3662daf023500dc084fa3b96f68a6f46179ddc73 (diff) |
sched/vtime: Work around an unitialized variable warning
Work around this warning:
kernel/sched/cputime.c: In function ‘kcpustat_field’:
kernel/sched/cputime.c:1007:6: warning: ‘val’ may be used uninitialized in this function [-Wmaybe-uninitialized]
because GCC can't see that val is used only when err is 0.
Acked-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20200327214334.GF8015@zn.tnic
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions