diff options
| author | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
|---|---|---|
| committer | Dmitry Torokhov <[email protected]> | 2023-05-01 15:20:08 -0700 | 
| commit | 9a87ffc99ec8eb8d35eed7c4f816d75f5cc9662e (patch) | |
| tree | d57f3a63479a07b4e0cece029886e76e04feb984 /include/linux/compiler_attributes.h | |
| parent | 5dc63e56a9cf8df0b59c234a505a1653f1bdf885 (diff) | |
| parent | 53bea86b5712c7491bb3dae12e271666df0a308c (diff) | |
Merge branch 'next' into for-linus
Prepare input updates for 6.4 merge window.
Diffstat (limited to 'include/linux/compiler_attributes.h')
| -rw-r--r-- | include/linux/compiler_attributes.h | 25 | 
1 files changed, 6 insertions, 19 deletions
diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h index 898b3458b24a..e659cb6fded3 100644 --- a/include/linux/compiler_attributes.h +++ b/include/linux/compiler_attributes.h @@ -64,22 +64,10 @@   * compiler should see some alignment anyway, when the return value is   * massaged by 'flags = ptr & 3; ptr &= ~3;').   * - * Optional: not supported by icc - *   *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-assume_005faligned-function-attribute   * clang: https://clang.llvm.org/docs/AttributeReference.html#assume-aligned   */ -#if __has_attribute(__assume_aligned__) -# define __assume_aligned(a, ...)       __attribute__((__assume_aligned__(a, ## __VA_ARGS__))) -#else -# define __assume_aligned(a, ...) -#endif - -/* - *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-cold-function-attribute - *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Label-Attributes.html#index-cold-label-attribute - */ -#define __cold                          __attribute__((__cold__)) +#define __assume_aligned(a, ...)        __attribute__((__assume_aligned__(a, ## __VA_ARGS__)))  /*   * Note the long name. @@ -91,7 +79,6 @@  /*   * Optional: only supported since gcc >= 9   * Optional: not supported by clang - * Optional: not supported by icc   *   *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-copy-function-attribute   */ @@ -104,7 +91,6 @@  /*   * Optional: not supported by gcc   * Optional: only supported since clang >= 14.0 - * Optional: not supported by icc   *   * clang: https://clang.llvm.org/docs/AttributeReference.html#diagnose_as_builtin   */ @@ -128,7 +114,6 @@  /*   * Optional: not supported by clang - * Optional: not supported by icc   *   *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Type-Attributes.html#index-designated_005finit-type-attribute   */ @@ -242,7 +227,6 @@  /*   * Optional: only supported since gcc >= 8   * Optional: not supported by clang - * Optional: not supported by icc   *   *   gcc: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html#index-nonstring-variable-attribute   */ @@ -273,7 +257,6 @@  /*   * Optional: not supported by gcc. - * Optional: not supported by icc.   *   * clang: https://clang.llvm.org/docs/AttributeReference.html#overloadable   */ @@ -293,10 +276,14 @@   * Note: the "type" argument should match any __builtin_object_size(p, type) usage.   *   * Optional: not supported by gcc. - * Optional: not supported by icc.   *   * clang: https://clang.llvm.org/docs/AttributeReference.html#pass-object-size-pass-dynamic-object-size   */ +#if __has_attribute(__pass_dynamic_object_size__) +# define __pass_dynamic_object_size(type)	__attribute__((__pass_dynamic_object_size__(type))) +#else +# define __pass_dynamic_object_size(type) +#endif  #if __has_attribute(__pass_object_size__)  # define __pass_object_size(type)	__attribute__((__pass_object_size__(type)))  #else  |