]> git.baikalelectronics.ru Git - kernel.git/commit
x86/xen: silence smatch warning in pmu_msr_chk_emulated()
authorJuergen Gross <jgross@suse.com>
Thu, 20 Oct 2022 11:21:43 +0000 (13:21 +0200)
committerJuergen Gross <jgross@suse.com>
Thu, 3 Nov 2022 09:23:26 +0000 (10:23 +0100)
commited4350d7d3578c798104685144ec478e6e6016bb
treebd2d807061679ee2d18d03fe9cef2c1ca52a2bc5
parentdef9d965c35d957d80471559dd2a293abeaba1fe
x86/xen: silence smatch warning in pmu_msr_chk_emulated()

Commit 58ae6bb9f9d2 ("xen/pv: add fault recovery control to pmu msr
accesses") introduced code resulting in a warning issued by the smatch
static checker, claiming to use an uninitialized variable.

This is a false positive, but work around the warning nevertheless.

Fixes: 58ae6bb9f9d2 ("xen/pv: add fault recovery control to pmu msr accesses")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
arch/x86/xen/pmu.c