X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fasoc.h;h=0069e2ce8170d3c5e397ff6ec28e8bb52157c8c2;hb=c6b2e60db40fdc2d116620ee6fbc103c12b72933;hp=dd5a066a7329084e40e2c7da7872f016a5345aea;hpb=ecd86863f274c6661a2393cbcb02593f66144c7f;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/asoc.h b/instrumentation/events/lttng-module/asoc.h index dd5a066a..0069e2ce 100644 --- a/instrumentation/events/lttng-module/asoc.h +++ b/instrumentation/events/lttng-module/asoc.h @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: GPL-2.0 */ #undef TRACE_SYSTEM #define TRACE_SYSTEM asoc @@ -13,7 +14,9 @@ #ifndef _TRACE_ASOC_DEF #define _TRACE_ASOC_DEF struct snd_soc_jack; +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)) struct snd_soc_codec; +#endif #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0) && \ LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0)) struct snd_soc_platform; @@ -386,6 +389,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_jack_notify, ) #endif +#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)) LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_cache_sync, asoc_snd_soc_cache_sync, @@ -402,6 +406,7 @@ LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_cache_sync, ctf_integer(int, id, codec->CODEC_ID_FIELD) ) ) +#endif #endif /* LTTNG_TRACE_ASOC_H */