fix: isystem: delete global -isystem compile option (v5.16)
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 14 Dec 2021 19:46:45 +0000 (14:46 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 4 Jan 2022 14:19:46 +0000 (09:19 -0500)
See upstream commit :

  commit 04e85bbf71c9072dcf0ad9a7150495d72461105c
  Author: Alexey Dobriyan <adobriyan@gmail.com>
  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 <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/lttng/msgpack.h
include/lttng/string-utils.h
include/lttng/tracer.h
src/lib/msgpack/msgpack.c
src/lttng-events.c
src/lttng-syscalls.c
src/lttng-syscalls.h

index a5c03ba67d56694df68c0571176a1cb6f4635aa9..0c63f1ba869d3b41eb95a7477cf8ab354c437f1a 100644 (file)
@@ -21,7 +21,6 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#include <stddef.h>
 #ifdef __KERNEL__
 #include <linux/types.h>
 #else /* __KERNEL__ */
index 3e7267e9f17eabac2e383f4aaccee7f416dc0c6d..8b39bef5548bd2f831f26e991272fe9ea29f5e57 100644 (file)
@@ -6,8 +6,6 @@
  * Copyright (C) 2017 Philippe Proulx <pproulx@efficios.com>
  */
 
-#include <stdbool.h>
-
 typedef char (*strutils_get_char_at_cb)(size_t, void *);
 
 bool strutils_is_star_glob_pattern(const char *pattern);
index fbffc7e859356a8f59f7def1ee7a9f96015111ab..927ad9f4132ffe9c082b2c29b84744a3ae0c932e 100644 (file)
@@ -11,7 +11,6 @@
  * Copyright (C) 2005-2012 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
  */
 
-#include <stdarg.h>
 #include <linux/types.h>
 #include <linux/limits.h>
 #include <linux/list.h>
index b4d9beec279839ecde9aff98462ef36da5bc8a97..fbbd96f0f97f22041a75342ebd40fb953ceeeff3 100644 (file)
@@ -20,7 +20,6 @@
 
 #define _GNU_SOURCE
 #define _LGPL_SOURCE
-#include <stddef.h>
 
 #define MSGPACK_FIXSTR_ID_MASK         0xA0
 #define MSGPACK_FIXMAP_ID_MASK         0x80
index 2b4b1039803222cf0e383ad943c6dc991cc1dcb1..4ddf4a77774a89d22ff74bdf5f3e7dd96e0c93c8 100644 (file)
 #include <ringbuffer/frontend.h>
 #include <wrapper/time.h>
 
+#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,16,0))
+#include <linux/stdarg.h>
+#else
+#include <stdarg.h>
+#endif
+
 #define METADATA_CACHE_DEFAULT_SIZE 4096
 
 static LIST_HEAD(sessions);
index 6ea9f13d5542a3160887768e63e3385ac5c80c5c..d5e5df4a9bb9575d6417667ffffe9de2aa75ada2 100644 (file)
@@ -28,6 +28,7 @@
 #include <wrapper/file.h>
 #include <wrapper/rcu.h>
 #include <wrapper/syscall.h>
+#include <wrapper/limits.h>
 #include <lttng/events.h>
 #include <lttng/events-internal.h>
 #include <lttng/utils.h>
index 7cbdd0ffeeac00c85aa431c1b1efa9e8a36c29b9..a464e69e3ca9558fa6cc729266a22c33ba3001c2 100644 (file)
@@ -10,8 +10,6 @@
 #ifndef LTTNG_SYSCALLS_H
 #define LTTNG_SYSCALLS_H
 
-#include <stddef.h>
-
 #include <asm/ptrace.h>
 #include <linux/compat.h>
 #include <linux/fcntl.h>
This page took 0.054787 seconds and 4 git commands to generate.