diff options
author | 2017-08-21 21:48:37 +0100 | |
---|---|---|
committer | 2017-08-21 21:48:37 +0100 | |
commit | f13db334bf7b68b0086d04ab6a51517ba41123b4 (patch) | |
tree | 1ce74e775b64e9804aa5bbece3cdc94fd309912b /include/linux/compiler-gcc.h | |
parent | ASoC: codecs: constify snd_soc_dai_ops structures (diff) | |
parent | ASoC: qcom: apq8016-sbc: Add support to Headset JACK (diff) | |
download | wireguard-linux-f13db334bf7b68b0086d04ab6a51517ba41123b4.tar.xz wireguard-linux-f13db334bf7b68b0086d04ab6a51517ba41123b4.zip |
Merge branch 'topic/msm8916' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into asoc-const
Diffstat (limited to '')
-rw-r--r-- | include/linux/compiler-gcc.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index cd4bbe8242bd..bdb80c4aef6e 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h @@ -235,6 +235,7 @@ #endif /* GCC_VERSION >= 40500 */ #if GCC_VERSION >= 40600 + /* * When used with Link Time Optimization, gcc can optimize away C functions or * variables which are referenced only from assembly code. __visible tells the @@ -242,7 +243,17 @@ * this. */ #define __visible __attribute__((externally_visible)) -#endif + +/* + * 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 */ #if GCC_VERSION >= 40900 && !defined(__CHECKER__) |