linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] compiler_attributes: fix __has_attribute(__no_sanitize_coverage__) for gcc 4
@ 2021-07-14 15:01 Marco Elver
  2021-07-14 17:05 ` Miguel Ojeda
  0 siblings, 1 reply; 3+ messages in thread
From: Marco Elver @ 2021-07-14 15:01 UTC (permalink / raw)
  To: elver
  Cc: linux-kernel, ojeda, Nathan Chancellor, Nick Desaulniers,
	Kees Cook, Andrew Morton, Geert Uytterhoeven

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>
---
 include/linux/compiler_attributes.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/linux/compiler_attributes.h b/include/linux/compiler_attributes.h
index 2487be0e7199..67c5667f8042 100644
--- a/include/linux/compiler_attributes.h
+++ b/include/linux/compiler_attributes.h
@@ -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
 
-- 
2.32.0.93.g670b81a890-goog


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] compiler_attributes: fix __has_attribute(__no_sanitize_coverage__) for gcc 4
  2021-07-14 15:01 [PATCH] compiler_attributes: fix __has_attribute(__no_sanitize_coverage__) for gcc 4 Marco Elver
@ 2021-07-14 17:05 ` Miguel Ojeda
  2021-07-15 23:12   ` Miguel Ojeda
  0 siblings, 1 reply; 3+ messages in thread
From: Miguel Ojeda @ 2021-07-14 17:05 UTC (permalink / raw)
  To: Marco Elver
  Cc: linux-kernel, Miguel Ojeda, Nathan Chancellor, Nick Desaulniers,
	Kees Cook, Andrew Morton, Geert Uytterhoeven

On Wed, Jul 14, 2021 at 5:02 PM Marco Elver <elver@google.com> wrote:
>
> 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>

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

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] compiler_attributes: fix __has_attribute(__no_sanitize_coverage__) for gcc 4
  2021-07-14 17:05 ` Miguel Ojeda
@ 2021-07-15 23:12   ` Miguel Ojeda
  0 siblings, 0 replies; 3+ messages in thread
From: Miguel Ojeda @ 2021-07-15 23:12 UTC (permalink / raw)
  To: Marco Elver
  Cc: linux-kernel, Miguel Ojeda, Nathan Chancellor, Nick Desaulniers,
	Kees Cook, Andrew Morton, Geert Uytterhoeven

On Wed, Jul 14, 2021 at 7:05 PM Miguel Ojeda
<miguel.ojeda.sandonis@gmail.com> wrote:
>
> Looks good, thanks -- I will pick it up tomorrow.

Queued.

Cheers,
Miguel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-07-15 23:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-14 15:01 [PATCH] compiler_attributes: fix __has_attribute(__no_sanitize_coverage__) for gcc 4 Marco Elver
2021-07-14 17:05 ` Miguel Ojeda
2021-07-15 23:12   ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).