x86/vpt: fix build with old gcc
authorJan Beulich <jbeulich@suse.com>
Wed, 18 Nov 2020 11:38:01 +0000 (12:38 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Nov 2020 11:38:01 +0000 (12:38 +0100)
commitf2c620aa062767b318267d678ae249dcb637b870
treea25fd0fcf4297f8083c4ff19e8eb1c61220a9775
parentdc5616e126714e7987cc1caf9bc7a95de0046ef7
x86/vpt: fix build with old gcc

I believe it was the XSA-336 fix (42fcdd42328f "x86/vpt: fix race when
migrating timers between vCPUs") which has unmasked a bogus
uninitialized variable warning. This is observable with gcc 4.3.4, but
only on 4.13 and older; it's hidden on newer versions apparently due to
the addition to _read_unlock() done by 12509bbeb9e3 ("rwlocks: call
preempt_disable() when taking a rwlock").

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/vpt.c