summaryrefslogtreecommitdiff
path: root/include/linux/compiler_attributes.h
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2021-07-14 18:01:59 +0300
committerMiguel Ojeda <ojeda@kernel.org>2021-07-16 02:06:44 +0300
commit7ed012969bbcdbd7aef5778a061681e6cbc4b402 (patch)
tree1d5f4d85e9ebb1013bfc471117ee935948a61842 /include/linux/compiler_attributes.h
parent62fb9874f5da54fdb243003b386128037319b219 (diff)
downloadlinux-7ed012969bbcdbd7aef5778a061681e6cbc4b402.tar.xz
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 <geert@linux-m68k.org> Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'include/linux/compiler_attributes.h')
-rw-r--r--include/linux/compiler_attributes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h
index 183ddd5fd072..7b1fa5c30169 100644
--- a/include/linux/compiler_attributes.h
+++ b/include/linux/compiler_attributes.h
@@ -36,6 +36,7 @@
# 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_coverage__ 0
# define __GCC4_has_attribute___fallthrough__ 0
#endif