summaryrefslogtreecommitdiff
path: root/include/linux/compiler-clang.h
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2017-10-16 15:28:15 -0700
committerGreg Hackmann <ghackmann@google.com>2017-10-16 15:28:21 -0700
commit02049f8843cbca96b6bf0821c648071666af89a7 (patch)
treefa975cff0515664473f4ac427f69c2657fb7e1ed /include/linux/compiler-clang.h
parentec888d46d8993b2bf205ed375e538a3819c23659 (diff)
parent20ea95166e628343b388139f1b521c50f5fd0b44 (diff)
Merge branch 'android-4.4-llvm' into android-4.4
Change-Id: Ieb23e9018ae152706f1980fcd5cbd1dffb4d8be6 Signed-off-by: Greg Hackmann <ghackmann@google.com>
Diffstat (limited to 'include/linux/compiler-clang.h')
-rw-r--r--include/linux/compiler-clang.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/compiler-clang.h b/include/linux/compiler-clang.h
index d1e49d52b640..de179993e039 100644
--- a/include/linux/compiler-clang.h
+++ b/include/linux/compiler-clang.h
@@ -10,3 +10,8 @@
#undef uninitialized_var
#define uninitialized_var(x) x = *(&(x))
#endif
+
+/* same as gcc, this was present in clang-2.6 so we can assume it works
+ * with any version that can compile the kernel
+ */
+#define __UNIQUE_ID(prefix) __PASTE(__PASTE(__UNIQUE_ID_, prefix), __COUNTER__)