mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Sascha Hauer <s.hauer@pengutronix.de>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: barebox@lists.infradead.org, Ahmad Fatoum <ahmad@a3f.at>
Subject: Re: [PATCH] ubsan: use a big if block in Kconfig
Date: Mon, 3 Feb 2020 09:11:17 +0100	[thread overview]
Message-ID: <20200203081117.kodexugwxzs5ai3a@pengutronix.de> (raw)
In-Reply-To: <20200129112251.11515-1-u.kleine-koenig@pengutronix.de>

On Wed, Jan 29, 2020 at 12:22:51PM +0100, Uwe Kleine-König wrote:
> A side effect (which was the motivation for this change) is that the
> config item CONFIG_UBSAN_ALIGNMENT doesn't appear in configurations that
> have CONFIG_UBSAN disabled.
> 
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
>  lib/Kconfig.ubsan | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)

Applied, thanks

Sascha

> 
> diff --git a/lib/Kconfig.ubsan b/lib/Kconfig.ubsan
> index 09f4a0ab8ab8..22958f48011e 100644
> --- a/lib/Kconfig.ubsan
> +++ b/lib/Kconfig.ubsan
> @@ -9,9 +9,10 @@ config UBSAN
>  	  Compile-time instrumentation is used to detect various undefined
>  	  behaviours in runtime.
>  
> +if UBSAN
> +
>  config UBSAN_SANITIZE_ALL
>  	bool "Enable instrumentation for all of barebox"
> -	depends on UBSAN
>  	depends on ARCH_HAS_UBSAN_SANITIZE_ALL
>  	default y
>  	help
> @@ -23,7 +24,6 @@ config UBSAN_SANITIZE_ALL
>  
>  config UBSAN_NO_ALIGNMENT
>  	bool "Disable checking of pointers alignment"
> -	depends on UBSAN
>  	default y if HAVE_EFFICIENT_UNALIGNED_ACCESS
>  	help
>  	  This option disables the check of unaligned memory accesses.
> @@ -33,3 +33,5 @@ config UBSAN_NO_ALIGNMENT
>  
>  config UBSAN_ALIGNMENT
>  	def_bool !UBSAN_NO_ALIGNMENT
> +
> +endif
> -- 
> 2.24.0
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

      reply	other threads:[~2020-02-03  8:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-29 11:22 Uwe Kleine-König
2020-02-03  8:11 ` Sascha Hauer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200203081117.kodexugwxzs5ai3a@pengutronix.de \
    --to=s.hauer@pengutronix.de \
    --cc=ahmad@a3f.at \
    --cc=barebox@lists.infradead.org \
    --cc=u.kleine-koenig@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox