]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: fix sparse warning in include/trace/events/kvm.h
authorChristian Borntraeger <borntraeger@de.ibm.com>
Thu, 15 Jan 2015 14:21:19 +0000 (15:21 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 19 Jan 2015 10:07:57 +0000 (11:07 +0100)
commitcdef511985374dd042a40bb32c1c346c2662c9dc
treecfbc83ee36d0f40e44318d369bc25abfb8af2329
parentec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc
KVM: fix sparse warning in include/trace/events/kvm.h

sparse complains about
include/trace/events/kvm.h:163:1: error: directive in argument list
include/trace/events/kvm.h:167:1: error: directive in argument list
include/trace/events/kvm.h:169:1: error: directive in argument list
and sparse is right. Preprocessing directives in an argument of a
macro are undefined behaviour as of C99 6.10.3p11.

Lets use an indirection to fix this.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/trace/events/kvm.h