Skip to content

Commit 7ed0129

Browse files
melverojeda
authored andcommitted
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: 540540d ("kcov: add __no_sanitize_coverage to fix noinstr for all architectures") Reported-by: Geert Uytterhoeven <[email protected]> Signed-off-by: Marco Elver <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent 62fb987 commit 7ed0129

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/compiler_attributes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
# define __GCC4_has_attribute___nonstring__ 0
3737
# define __GCC4_has_attribute___no_sanitize_address__ (__GNUC_MINOR__ >= 8)
3838
# define __GCC4_has_attribute___no_sanitize_undefined__ (__GNUC_MINOR__ >= 9)
39+
# define __GCC4_has_attribute___no_sanitize_coverage__ 0
3940
# define __GCC4_has_attribute___fallthrough__ 0
4041
#endif
4142

0 commit comments

Comments
 (0)