From: Michael Jeanson Date: Tue, 14 Dec 2021 19:46:45 +0000 (-0500) Subject: fix: isystem: delete global -isystem compile option (v5.16) X-Git-Tag: v2.12.7~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=74b3b9d3c44075dbc72da8992d935db62b3cf3d6;p=lttng-modules.git fix: isystem: delete global -isystem compile option (v5.16) See upstream commit : commit 04e85bbf71c9072dcf0ad9a7150495d72461105c Author: Alexey Dobriyan Date: Mon Aug 2 23:43:15 2021 +0300 isystem: delete global -isystem compile option Further isolate kernel from userspace, prevent accidental inclusion of undesireable headers, mainly float.h and stdatomic.h. nds32 keeps -isystem globally due to intrinsics used in entrenched header. -isystem is selectively reenabled for some files, again, for intrinsics. Change-Id: I5bea29687dc2bc15e96eeb13008aefe1acc97b8a Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-events.c b/lttng-events.c index 60f5623b..9462877d 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -46,6 +46,12 @@ #include #include +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,16,0)) +#include +#else +#include +#endif + #define METADATA_CACHE_DEFAULT_SIZE 4096 static LIST_HEAD(sessions); diff --git a/lttng-string-utils.h b/lttng-string-utils.h index 0f8ba793..145aefa8 100644 --- a/lttng-string-utils.h +++ b/lttng-string-utils.h @@ -6,8 +6,6 @@ * Copyright (C) 2017 Philippe Proulx */ -#include - typedef char (*strutils_get_char_at_cb)(size_t, void *); bool strutils_is_star_glob_pattern(const char *pattern); diff --git a/lttng-tracer.h b/lttng-tracer.h index a006f23e..6348b8af 100644 --- a/lttng-tracer.h +++ b/lttng-tracer.h @@ -11,7 +11,6 @@ * Copyright (C) 2005-2012 Mathieu Desnoyers */ -#include #include #include #include