gcc-plugins: Add the randstruct plugin
[linux-2.6-block.git] / include / linux / compiler.h
index 80a1dea36cbe060303a00468fd168d2bd7da10b4..55ee9ee814f8f6fdce82d15baf09d5df05031e41 100644 (file)
@@ -448,6 +448,14 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
 # define __latent_entropy
 #endif
 
+#ifndef __randomize_layout
+# define __randomize_layout __designated_init
+#endif
+
+#ifndef __no_randomize_layout
+# define __no_randomize_layout
+#endif
+
 /*
  * Tell gcc if a function is cold. The compiler will assume any path
  * directly leading to the call is unlikely.