diff options
| author | 2017-07-04 21:41:31 -0700 | |
|---|---|---|
| committer | 2017-07-04 21:41:31 -0700 | |
| commit | d1185a8c5dd21182012e6dd531b00fd72f4d30cb (patch) | |
| tree | 1c394d6e27bad00e0f3aba4e59ca19823d0486d5 /include/linux/compiler.h | |
| parent | Linux 4.12 (diff) | |
| parent | Merge branch 'for-next/gcc-plugin-infrastructure' into merge/randstruct (diff) | |
| download | wireguard-linux-d1185a8c5dd21182012e6dd531b00fd72f4d30cb.tar.xz wireguard-linux-d1185a8c5dd21182012e6dd531b00fd72f4d30cb.zip | |
Merge branch 'merge/randstruct' into for-next/gcc-plugins
Diffstat (limited to 'include/linux/compiler.h')
| -rw-r--r-- | include/linux/compiler.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h index f8110051188f..55ee9ee814f8 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h @@ -440,10 +440,22 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s # define __attribute_const__ /* unimplemented */ #endif +#ifndef __designated_init +# define __designated_init +#endif + #ifndef __latent_entropy # 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. |
