From: Linus Torvalds <torvalds@linux-foundation.org>
Date: Sun, 12 Sep 2021 23:09:26 +0000 (-0700)
Subject: Merge tag 'compiler-attributes-for-linus-v5.15-rc1-v2' of git://github.com/ojeda... 
X-Git-Tag: v5.15-rc1~2
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c3e46874dfb9a2ef08085bb147dc371e72738673;p=users%2Fdwmw2%2Flinux.git

Merge tag 'compiler-attributes-for-linus-v5.15-rc1-v2' of git://github.com/ojeda/linux

Pull compiler attributes updates from Miguel Ojeda:

 - Fix __has_attribute(__no_sanitize_coverage__) for GCC 4 (Marco Elver)

 - Add Nick as Reviewer for compiler_attributes.h (Nick Desaulniers)

 - Move __compiletime_{error|warning} (Nick Desaulniers)

* tag 'compiler-attributes-for-linus-v5.15-rc1-v2' of git://github.com/ojeda/linux:
  compiler_attributes.h: move __compiletime_{error|warning}
  MAINTAINERS: add Nick as Reviewer for compiler_attributes.h
  Compiler Attributes: fix __has_attribute(__no_sanitize_coverage__) for GCC 4
---

c3e46874dfb9a2ef08085bb147dc371e72738673
diff --cc include/linux/compiler_attributes.h
index 2487be0e71994,f4df9e5a8c769..8f2106e9e5c12
--- a/include/linux/compiler_attributes.h
+++ b/include/linux/compiler_attributes.h
@@@ -27,17 -27,19 +27,20 @@@
   */
  #ifndef __has_attribute
  # define __has_attribute(x) __GCC4_has_attribute_##x
 -# define __GCC4_has_attribute___assume_aligned__      (__GNUC_MINOR__ >= 9)
 +# define __GCC4_has_attribute___assume_aligned__      1
  # define __GCC4_has_attribute___copy__                0
  # define __GCC4_has_attribute___designated_init__     0
+ # define __GCC4_has_attribute___error__               1
  # define __GCC4_has_attribute___externally_visible__  1
  # define __GCC4_has_attribute___no_caller_saved_registers__ 0
  # define __GCC4_has_attribute___noclone__             1
 +# define __GCC4_has_attribute___no_profile_instrument_function__ 0
  # define __GCC4_has_attribute___nonstring__           0
 -# define __GCC4_has_attribute___no_sanitize_address__ (__GNUC_MINOR__ >= 8)
 -# define __GCC4_has_attribute___no_sanitize_undefined__ (__GNUC_MINOR__ >= 9)
 +# define __GCC4_has_attribute___no_sanitize_address__ 1
 +# define __GCC4_has_attribute___no_sanitize_undefined__ 1
+ # define __GCC4_has_attribute___no_sanitize_coverage__ 0
  # define __GCC4_has_attribute___fallthrough__         0
+ # define __GCC4_has_attribute___warning__             1
  #endif
  
  /*