X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fasoc.h;h=7d86af876058a34908f77878698f5d610ab46d3c;hb=3b4aafcbbef722c5d04f2fe06a47c47d4d23eda0;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..7d86af87 100644 --- a/instrumentation/events/lttng-module/asoc.h +++ b/instrumentation/events/lttng-module/asoc.h @@ -1,10 +1,11 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ #undef TRACE_SYSTEM #define TRACE_SYSTEM asoc #if !defined(LTTNG_TRACE_ASOC_H) || defined(TRACE_HEADER_MULTI_READ) #define LTTNG_TRACE_ASOC_H -#include +#include #include #include @@ -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,8 +406,9 @@ LTTNG_TRACEPOINT_EVENT_MAP(snd_soc_cache_sync, ctf_integer(int, id, codec->CODEC_ID_FIELD) ) ) +#endif #endif /* LTTNG_TRACE_ASOC_H */ /* This part must be outside protection */ -#include +#include