diff options
author | 2023-08-01 08:56:51 -0700 | |
---|---|---|
committer | 2023-10-03 21:25:56 +0200 | |
commit | 618e77d77494bfd6273256d43eafe4368445c745 (patch) | |
tree | d8f58de55f1c88e5652bb45e278d00b7007385ce /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | perf/x86/rapl: Use local64_try_cmpxchg in rapl_event_update() (diff) | |
download | wireguard-linux-618e77d77494bfd6273256d43eafe4368445c745.tar.xz wireguard-linux-618e77d77494bfd6273256d43eafe4368445c745.zip |
perf/x86/rapl: Fix "Using plain integer as NULL pointer" Sparse warning
Change 0 to NULL when initializing the test field of perf_msr structs to
avoid the following sparse warnings:
make C=2 arch/x86/events/rapl.o
CHECK arch/x86/events/rapl.c
...
arch/x86/events/rapl.c:540:59: warning: Using plain integer as NULL pointer
arch/x86/events/rapl.c:542:59: warning: Using plain integer as NULL pointer
arch/x86/events/rapl.c:543:59: warning: Using plain integer as NULL pointer
arch/x86/events/rapl.c:544:59: warning: Using plain integer as NULL pointer
Signed-off-by: David Reaver <me@davidreaver.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20230801155651.108076-1-me@davidreaver.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions