linux_dsm_epyc7002/arch/x86/events/amd
Colin Ian King 59d5396a46 x86/events/amd/iommu: Fix sizeof mismatch
An incorrect sizeof is being used, struct attribute ** is not correct,
it should be struct attribute *. Note that since ** is the same size as
* this is not causing any issues.  Improve this fix by using sizeof(*attrs)
as this allows us to not even reference the type of the pointer.

Addresses-Coverity: ("Sizeof not portable (SIZEOF_MISMATCH)")
Fixes: 5168654630 ("x86/events/amd/iommu: Fix sysfs perf attribute groups")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20201001113900.58889-1-colin.king@canonical.com
2020-10-03 16:30:56 +02:00
..
core.c perf/x86/amd: Add missing L2 misses event spec to AMD Family 17h's event map 2020-02-11 13:17:51 +01:00
ibs.c arch/x86/amd/ibs: Fix re-arming IBS Fetch 2020-09-10 11:19:36 +02:00
iommu.c x86/events/amd/iommu: Fix sizeof mismatch 2020-10-03 16:30:56 +02:00
iommu.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
power.c x86/msr: Lift AMD family 0x15 power-specific MSRs 2020-06-15 19:25:53 +02:00
uncore.c perf/amd/uncore: Inform the user how many counters each uncore PMU has 2020-09-24 15:55:50 +02:00