From: Michael Jeanson Date: Wed, 7 Dec 2016 19:17:33 +0000 (-0500) Subject: Fix: asoc instrumentation for RHEL 7.3 X-Git-Tag: v2.10.0-rc1~35 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5f9ff4e230753160ccfc300d44004b117cf678ad;p=lttng-modules.git Fix: asoc instrumentation for RHEL 7.3 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/asoc.h b/instrumentation/events/lttng-module/asoc.h index 09e1fe27..25136ec0 100644 --- a/instrumentation/events/lttng-module/asoc.h +++ b/instrumentation/events/lttng-module/asoc.h @@ -21,7 +21,8 @@ struct snd_soc_card; struct snd_soc_dapm_widget; #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0) \ + || LTTNG_RHEL_KERNEL_RANGE(3,10,0,514,0,0, 3,11,0,0,0,0)) #define CODEC_NAME_FIELD component.name #define CODEC_ID_FIELD component.id #else