Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1a8cfa2

Browse files
arndbPeter Zijlstra
authored and
Peter Zijlstra
committed
perf/x86/intel/uncore: Fix Add BW copypasta
gcc -Wextra points out a duplicate initialization of one arraymember: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 usedinstead of the correct 'WRITES', so change it back.Fixes:24633d9 ("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
1 parentcadbaa0 commit1a8cfa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎arch/x86/events/intel/uncore_snb.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ enum perf_snb_uncore_imc_freerunning_types {
475475
staticstructfreerunning_counterssnb_uncore_imc_freerunning[]= {
476476
[SNB_PCI_UNCORE_IMC_DATA_READS]= {SNB_UNCORE_PCI_IMC_DATA_READS_BASE,
477477
0x0,0x0,1,32 },
478-
[SNB_PCI_UNCORE_IMC_DATA_READS]= {SNB_UNCORE_PCI_IMC_DATA_WRITES_BASE,
478+
[SNB_PCI_UNCORE_IMC_DATA_WRITES]= {SNB_UNCORE_PCI_IMC_DATA_WRITES_BASE,
479479
0x0,0x0,1,32 },
480480
[SNB_PCI_UNCORE_IMC_GT_REQUESTS]= {SNB_UNCORE_PCI_IMC_GT_REQUESTS_BASE,
481481
0x0,0x0,1,32 },

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp