aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/compiler.h')
-rw-r--r--include/linux/compiler.h12
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
440# define __attribute_const__ /* unimplemented */ 440# define __attribute_const__ /* unimplemented */
441#endif 441#endif
442 442
443#ifndef __designated_init
444# define __designated_init
445#endif
446
443#ifndef __latent_entropy 447#ifndef __latent_entropy
444# define __latent_entropy 448# define __latent_entropy
445#endif 449#endif
446 450
451#ifndef __randomize_layout
452# define __randomize_layout __designated_init
453#endif
454
455#ifndef __no_randomize_layout
456# define __no_randomize_layout
457#endif
458
447/* 459/*
448 * Tell gcc if a function is cold. The compiler will assume any path 460 * Tell gcc if a function is cold. The compiler will assume any path
449 * directly leading to the call is unlikely. 461 * directly leading to the call is unlikely.