marker_synchronize_unregister() is available only on 2.6.28. However, its definition is very simple, so we can define it if it is missing.
This fixes compilation of kvm_trace.c against older kernels. Signed-off-by: Eduardo Habkost <ehabk...@redhat.com> --- kernel/external-module-compat-comm.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/kernel/external-module-compat-comm.h b/kernel/external-module-compat-comm.h index f2343f6..5cb70b0 100644 --- a/kernel/external-module-compat-comm.h +++ b/kernel/external-module-compat-comm.h @@ -699,3 +699,8 @@ static inline void cpumask_clear_cpu(int cpu, cpumask_var_t mask) #endif + +/* Macro introduced only on newer kernels: */ +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) +#define marker_synchronize_unregister() synchronize_sched() +#endif -- 1.5.6.rc3.11.g5f54d -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html