]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: fix empty-body warnings
authorYi Wang <wang.yi59@zte.com.cn>
Thu, 8 Nov 2018 08:48:36 +0000 (16:48 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Nov 2018 11:50:09 +0000 (12:50 +0100)
commit5e4a10ec4efd0e0884b0b570701ca5586c2aea0b
treee268e1f121873eb78869e77479e78dad830df554
parent9e5726894329774db6387fc3aeb1783d6a79a0b4
KVM: x86: fix empty-body warnings

We get the following warnings about empty statements when building
with 'W=1':

arch/x86/kvm/lapic.c:632:53: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
arch/x86/kvm/lapic.c:1907:42: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
arch/x86/kvm/lapic.c:1936:65: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]
arch/x86/kvm/lapic.c:1975:44: warning: suggest braces around empty body in an ‘if’ statement [-Wempty-body]

Rework the debug helper macro to get rid of these warnings.

Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/lapic.c