Skip to contentSkip to conversation

compiler_attributes: fix __has_attribute(__no_sanitize_coverage__) for gcc 4

PATCH In review Marco Elver 2 participants 3 messages Jul 14, 2021 – Jul 15, 2021 Compiler attributes

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 compiler_attributes: fix __has_attribute(__no_sanitize_coverage__) for gcc 4

Fix __has_attribute(__no_sanitize_coverage__) for GCC 4 by defining __GCC4_has_attribute___no_sanitize_coverage__.

Fixes 540540d06e9d ("kcov: add __no_sanitize_coverage to fix noinstr for all architectures")
---
 include/linux/compiler_attributes.h | 1 +
 1 file changed, 1 insertion(+)
include/linux/compiler_attributes.h +1 -0
index 2487be0e7199..67c5667f8042 100644
@@ -37,6 +37,7 @@
 # define __GCC4_has_attribute___nonstring__           0
 # 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
 #endif
 
Signature · 1 line
2.32.0.93.g670b81a890-goog
#2 lore raw
Quoted 2 lines · Miguel Ojeda

Looks good, thanks -- I will pick it up tomorrow.

Queued.

Cheers,
Miguel