linux/tools/power/x86/intel-speed-select
Srinivas Pandruvada 9230a2ac2b tools/power/x86/intel-speed-select: Fix warning for perf_cap.cpu
Initialize perf_cap struct to avoid warning:

  CC      hfi-events.o
In function ‘process_hfi_event’,
    inlined from ‘handle_event’ at hfi-events.c:220:5:
hfi-events.c:184:9: warning: ‘perf_cap.cpu’ may be used
uninitialized [-Wmaybe-uninitialized]
  184 |         process_level_change(perf_cap->cpu);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
hfi-events.c: In function ‘handle_event’:
hfi-events.c:193:25: note: ‘perf_cap.cpu’ was declared here
  193 |         struct perf_cap perf_cap;
      |                         ^~~~~~~~

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20220511171208.211319-1-srinivas.pandruvada@linux.intel.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-05-12 15:37:53 +02:00
..
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
Build tools/power/x86/intel-speed-select: HFI support 2022-02-17 10:57:31 -08:00
hfi-events.c tools/power/x86/intel-speed-select: Fix warning for perf_cap.cpu 2022-05-12 15:37:53 +02:00
isst-config.c tools/power/x86/intel-speed-select: Display error on turbo mode disabled 2022-05-12 15:35:30 +02:00
isst-core.c tools/power/x86/intel-speed-select: Fix uncore memory frequency display 2021-06-18 15:29:23 +02:00
isst-daemon.c tools/power/x86/intel-speed-select: HFI support 2022-02-17 10:57:31 -08:00
isst-display.c tools/power/x86/intel-speed-select: Fix uncore memory frequency display 2021-06-18 15:29:23 +02:00
isst.h tools/power/x86/intel-speed-select: HFI support 2022-02-17 10:57:31 -08:00
Makefile tools/power/x86/intel-speed-select: fix build failure when using -Wl,--as-needed 2022-04-13 13:49:48 +02:00