aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/linux/compiler_types.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2020-12-18 09:59:05 -0300
committerArnaldo Carvalho de Melo <acme@redhat.com>2020-12-18 17:32:26 -0300
commit4bba4c4bb09ad4a2b70836725e08439c86d8f9e4 (patch)
tree764920d0e1a3e78e2d4f51babc550d8ec5234a8e /tools/include/linux/compiler_types.h
parenttools headers UAPI: Sync linux/stat.h with the kernel sources (diff)
downloadlinux-dev-4bba4c4bb09ad4a2b70836725e08439c86d8f9e4.tar.xz
linux-dev-4bba4c4bb09ad4a2b70836725e08439c86d8f9e4.zip
tools headers: Get tools's linux/compiler.h closer to the kernel's
We're cherry picking stuff from the kernel to allow for the other headers that we keep in sync via tools/perf/check-headers.sh to work, so introduce linux/compiler_types.h and from there get the compiler specific stuff. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/include/linux/compiler_types.h')
-rw-r--r--tools/include/linux/compiler_types.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/include/linux/compiler_types.h b/tools/include/linux/compiler_types.h
new file mode 100644
index 000000000000..31fc2caa758a
--- /dev/null
+++ b/tools/include/linux/compiler_types.h
@@ -0,0 +1,10 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __LINUX_COMPILER_TYPES_H
+#define __LINUX_COMPILER_TYPES_H
+
+/* Compiler specific macros. */
+#ifdef __GNUC__
+#include <linux/compiler-gcc.h>
+#endif
+
+#endif /* __LINUX_COMPILER_TYPES_H */