]> 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)
commita1e936bc0615854e60c8cf40b1297efe1181f4db
treecfbc83ee36d0f40e44318d369bc25abfb8af2329
parente6fc7c0e7fe1c9c8d93d2cc7a477bb74a684758c
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