aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2017-08-10 13:14:15 +0200
committerIngo Molnar <mingo@kernel.org>2017-08-10 13:14:15 +0200
commit1d0f49e14007a5426eb7e9e5808168cdb77b3e7f (patch)
tree1d7eb036e06938dedb7488910e4d34dc4c73fa68 /include/linux/compiler.h
parentx86/asm/32: Remove a bunch of '& 0xffff' from pt_regs segment reads (diff)
parentx86/asm/64: Clear AC on NMI entries (diff)
downloadlinux-dev-1d0f49e14007a5426eb7e9e5808168cdb77b3e7f.tar.xz
linux-dev-1d0f49e14007a5426eb7e9e5808168cdb77b3e7f.zip
Merge branch 'x86/urgent' into x86/asm, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
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 70f070ddd7c7..109b1460ecee 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -478,6 +478,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.