projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
x86/xen: silence smatch warning in pmu_msr_chk_emulated()
[platform/kernel/linux-starfive.git]
/
arch
/
x86
/
xen
/
pmu.c
diff --git
a/arch/x86/xen/pmu.c
b/arch/x86/xen/pmu.c
index
68aff13
..
246d67d
100644
(file)
--- a/
arch/x86/xen/pmu.c
+++ b/
arch/x86/xen/pmu.c
@@
-302,7
+302,7
@@
static bool xen_amd_pmu_emulate(unsigned int msr, u64 *val, bool is_read)
static bool pmu_msr_chk_emulated(unsigned int msr, uint64_t *val, bool is_read,
bool *emul)
{
- int type, index;
+ int type, index
= 0
;
if (is_amd_pmu_msr(msr))
*emul = xen_amd_pmu_emulate(msr, val, is_read);