diff options
author | 2018-05-14 05:19:07 +0800 | |
---|---|---|
committer | 2018-05-14 05:22:01 +0800 | |
commit | bba9525520b6028ecbe7486e13216e9ede8636be (patch) | |
tree | f82f4f2adecf6f97933c88050682d44336db783e /include/linux/compiler-gcc.h | |
parent | drm/i915/gvt: let force_to_nonpriv cmd handler only valid for LRI cmd (diff) | |
parent | drm/i915/gen9: Add WaClearHIZ_WM_CHICKEN3 for bxt and glk (diff) | |
download | wireguard-linux-bba9525520b6028ecbe7486e13216e9ede8636be.tar.xz wireguard-linux-bba9525520b6028ecbe7486e13216e9ede8636be.zip |
Merge branch 'drm-intel-next-queued' into gvt-next
Signed-off-by: Zhi Wang <zhi.a.wang@intel.com>
Diffstat (limited to '')
-rw-r--r-- | include/linux/compiler-gcc.h | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index e2c7f4369eff..b4bf73f5e38f 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -242,6 +242,9 @@ #if defined(RANDSTRUCT_PLUGIN) && !defined(__CHECKER__) #define __randomize_layout __attribute__((randomize_layout)) #define __no_randomize_layout __attribute__((no_randomize_layout)) +/* This anon struct can add padding, so only enable it under randstruct. */ +#define randomized_struct_fields_start struct { +#define randomized_struct_fields_end } __randomize_layout; #endif #endif /* GCC_VERSION >= 40500 */ @@ -256,15 +259,6 @@ */ #define __visible __attribute__((externally_visible)) -/* - * RANDSTRUCT_PLUGIN wants to use an anonymous struct, but it is only - * possible since GCC 4.6. To provide as much build testing coverage - * as possible, this is used for all GCC 4.6+ builds, and not just on - * RANDSTRUCT_PLUGIN builds. - */ -#define randomized_struct_fields_start struct { -#define randomized_struct_fields_end } __randomize_layout; - #endif /* GCC_VERSION >= 40600 */ |