diff options
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 707242fdbb89..219f82f3ec1a 100644 --- a/include/linux/compiler.h +++ b/include/linux/compiler.h | |||
@@ -436,10 +436,22 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s | |||
436 | # define __attribute_const__ /* unimplemented */ | 436 | # define __attribute_const__ /* unimplemented */ |
437 | #endif | 437 | #endif |
438 | 438 | ||
439 | #ifndef __designated_init | ||
440 | # define __designated_init | ||
441 | #endif | ||
442 | |||
439 | #ifndef __latent_entropy | 443 | #ifndef __latent_entropy |
440 | # define __latent_entropy | 444 | # define __latent_entropy |
441 | #endif | 445 | #endif |
442 | 446 | ||
447 | #ifndef __randomize_layout | ||
448 | # define __randomize_layout __designated_init | ||
449 | #endif | ||
450 | |||
451 | #ifndef __no_randomize_layout | ||
452 | # define __no_randomize_layout | ||
453 | #endif | ||
454 | |||
443 | /* | 455 | /* |
444 | * Tell gcc if a function is cold. The compiler will assume any path | 456 | * Tell gcc if a function is cold. The compiler will assume any path |
445 | * directly leading to the call is unlikely. | 457 | * directly leading to the call is unlikely. |