]> git.baikalelectronics.ru Git - kernel.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)
commitb5e8db1f2f671f442c8a343102aac790b332c93f
treecfbc83ee36d0f40e44318d369bc25abfb8af2329
parent11b320337bbae44440a9f70f2f42bdd7237994ea
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