From: Jan Kiszka <[email protected]> OpenSUSE's 2.6.27 already includes tracepoints and generates a lot of warnings regarding redefinition of tracepoint_synchronize_unregister.
Signed-off-by: Jan Kiszka <[email protected]> Signed-off-by: Avi Kivity <[email protected]> diff --git a/external-module-compat-comm.h b/external-module-compat-comm.h index 026fee1..c3dcde6 100644 --- a/external-module-compat-comm.h +++ b/external-module-compat-comm.h @@ -841,7 +841,7 @@ static inline struct file *eventfd_fget(int fd) #endif -/* tracepoints were introduced in 2.6.29, but changed in 2.6.30 */ +/* tracepoints were introduced in 2.6.28, but changed in 2.6.30 */ #include <linux/tracepoint.h> @@ -884,6 +884,7 @@ struct tracepoint; #define TRACE_EVENT(name, proto, args, struct, assign, print) \ DECLARE_TRACE(name, PARAMS(proto), PARAMS(args)) +#undef tracepoint_synchronize_unregister #define tracepoint_synchronize_unregister() do {} while (0) #endif -- To unsubscribe from this list: send the line "unsubscribe kvm-commits" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
