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.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/compiler.h b/include/linux/compiler.h
index 80a1dea36cbe..55ee9ee814f8 100644
--- a/include/linux/compiler.h
+++ b/include/linux/compiler.h
@@ -448,6 +448,14 @@ static __always_inline void __write_once_size(volatile void *p, void *res, int s
448# define __latent_entropy 448# define __latent_entropy
449#endif 449#endif
450 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
451/* 459/*
452 * 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
453 * directly leading to the call is unlikely. 461 * directly leading to the call is unlikely.