]> git.baikalelectronics.ru Git - kernel.git/commit
Compiler Attributes: fix __has_attribute(__no_sanitize_coverage__) for GCC 4
authorMarco Elver <elver@google.com>
Wed, 14 Jul 2021 15:01:59 +0000 (17:01 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Thu, 15 Jul 2021 23:06:44 +0000 (01:06 +0200)
commitffdfd9869fd31edfe3fb88286f799cfa3502888f
tree1d5f4d85e9ebb1013bfc471117ee935948a61842
parentff259b4d6fed4bd42e9279ce210ec985caf37e5b
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: e3b38344bdd4 ("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>
include/linux/compiler_attributes.h