diff options
Diffstat (limited to 'include/linux/compiler-gcc.h')
-rw-r--r-- | include/linux/compiler-gcc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/compiler-gcc.h b/include/linux/compiler-gcc.h index 0efef9cf014f..386caf6771ed 100644 --- a/include/linux/compiler-gcc.h +++ b/include/linux/compiler-gcc.h | |||
@@ -294,6 +294,14 @@ | |||
294 | #define __no_sanitize_address __attribute__((no_sanitize_address)) | 294 | #define __no_sanitize_address __attribute__((no_sanitize_address)) |
295 | #endif | 295 | #endif |
296 | 296 | ||
297 | #if GCC_VERSION >= 50100 | ||
298 | /* | ||
299 | * Mark structures as requiring designated initializers. | ||
300 | * https://gcc.gnu.org/onlinedocs/gcc/Designated-Inits.html | ||
301 | */ | ||
302 | #define __designated_init __attribute__((designated_init)) | ||
303 | #endif | ||
304 | |||
297 | #endif /* gcc version >= 40000 specific checks */ | 305 | #endif /* gcc version >= 40000 specific checks */ |
298 | 306 | ||
299 | #if !defined(__noclone) | 307 | #if !defined(__noclone) |