aboutsummaryrefslogtreecommitdiff
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorMark Brown <[email protected]>2017-08-21 21:50:23 +0100
committerMark Brown <[email protected]>2017-08-21 21:50:23 +0100
commitbf9790bcdca582a7a3a0c10550a52ba2a9efc5c9 (patch)
treef6325c050ad109e95ba8ae932f9fd5f1483f1dae /include/linux/compiler.h
parent728c4a87f31d30669a103dac1851a15f4e2af03c (diff)
parentf13db334bf7b68b0086d04ab6a51517ba41123b4 (diff)
Merge branch 'topic/const' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-blackfin
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 219f82f3ec1a..eca8ad75e28b 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -452,6 +452,11 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
# define __no_randomize_layout
#endif
+#ifndef randomized_struct_fields_start
+# define randomized_struct_fields_start
+# define randomized_struct_fields_end
+#endif
+
/*
* Tell gcc if a function is cold. The compiler will assume any path
* directly leading to the call is unlikely.