]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86/intel/uncore: Fix Add BW copypasta
authorArnd Bergmann <arnd@arndb.de>
Mon, 26 Oct 2020 21:51:57 +0000 (22:51 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 10 Nov 2020 17:38:40 +0000 (18:38 +0100)
commitdde601045ab69d617f1a3c68a5dba15a4de64c58
tree56f36e0815d231e32c781fe987227f0fce092046
parented83c4fbeae1c10701adb0de3ca2542d6bd308c3
perf/x86/intel/uncore: Fix Add BW copypasta

gcc -Wextra points out a duplicate initialization of one array
member:

arch/x86/events/intel/uncore_snb.c:478:37: warning: initialized field overwritten [-Woverride-init]
  478 |  [SNB_PCI_UNCORE_IMC_DATA_READS]  = { SNB_UNCORE_PCI_IMC_DATA_WRITES_BASE,

The only sensible explanation is that a duplicate 'READS' was used
instead of the correct 'WRITES', so change it back.

Fixes: 2fa95b053019 ("perf/x86/intel/uncore: Add BW counters for GT, IA and IO breakdown")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201026215203.3893972-1-arnd@kernel.org
arch/x86/events/intel/uncore_snb.c