compiler_attributes: fix __has_attribute(__no_sanitize_coverage__) for gcc 4
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")
Reported-by Geert Uytterhoeven <[email protected]>
Signed-off-by Marco Elver <[email protected]>
--- include/linux/compiler_attributes.h | 1 + 1 file changed, 1 insertion(+)
include/linux/compiler_attributes.h +1 -0
@@ -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
Quoted 7 lines · Marco Elver
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")Reported-by Geert Uytterhoeven <[email protected]>Signed-off-by Marco Elver <[email protected]>
Looks good, thanks -- I will pick it up tomorrow.
Cheers,
Miguel
Quoted 2 lines · Miguel Ojeda
Looks good, thanks -- I will pick it up tomorrow.
Queued.
Cheers,
Miguel