From f47884c8148847fae71b21e717483dd5def11a8f Mon Sep 17 00:00:00 2001 From: LeoLiu-oc Date: Sun, 4 Jan 2026 15:21:54 +0800 Subject: [PATCH] anolis: x86/perf/zhaoxin: fix zhaoxin_guest_get_msrs mismatch issue ANBZ: #29028 Fix the issue of missing parameters in the zhaoxin_guest_get_msrs function. Signed-off-by: LeoLiu-oc --- arch/x86/events/zhaoxin/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/events/zhaoxin/core.c b/arch/x86/events/zhaoxin/core.c index e9a410cb46f0..8d35e3101ef5 100644 --- a/arch/x86/events/zhaoxin/core.c +++ b/arch/x86/events/zhaoxin/core.c @@ -480,7 +480,7 @@ static ssize_t zhaoxin_event_sysfs_show(char *page, u64 config) return x86_event_sysfs_show(page, config, event); } -static struct perf_guest_switch_msr *zhaoxin_guest_get_msrs(int *nr) +static struct perf_guest_switch_msr *zhaoxin_guest_get_msrs(int *nr, void *data) { struct cpu_hw_events *cpuc = this_cpu_ptr(&cpu_hw_events); struct perf_guest_switch_msr *arr = cpuc->guest_switch_msrs; -- Gitee