lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f3eb4431-5dab-4ebd-9a05-7854002bd126@intel.com>
Date: Mon, 28 Oct 2024 10:08:35 +0100
From: Przemek Kitszel <przemyslaw.kitszel@...el.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>
CC: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, Ingo Molnar
	<mingo@...hat.com>, "H. Peter Anvin" <hpa@...or.com>, Peter Zijlstra
	<peterz@...radead.org>, Linux Next Mailing List <linux-next@...r.kernel.org>,
	Thomas Gleixner <tglx@...utronix.de>
Subject: Re: linux-next: build failure after merge of the tip tree

On 10/28/24 06:53, Stephen Rothwell wrote:
> Hi all,
> 
> After merging the tip tree, today's linux-next build (x86_64 allmodconfig)
> failed like this:
> 
> drivers/iio/magnetometer/af8133j.c: In function 'af8133j_set_scale':
> drivers/iio/magnetometer/af8133j.c:315:12: error: suggest explicit braces to avoid ambiguous 'else' [-Werror=dangling-else]
>    315 |         if (!pm_runtime_status_suspended(dev))
>        |            ^
> cc1: all warnings being treated as errors
> 
> Probably caused by commit
> 
>    fcc22ac5baf0 ("cleanup: Adjust scoped_guard() macros to avoid potential warning")
> 
> I have applied the following for today but I wonder if there may be
> others.
> 
>  From 93183168618777d573cd809a971c4db59a8dc800 Mon Sep 17 00:00:00 2001
> From: Stephen Rothwell <sfr@...b.auug.org.au>
> Date: Mon, 28 Oct 2024 16:01:15 +1100
> Subject: [PATCH] fix up for "cleanup: Adjust scoped_guard() macros to avoid
>   potential warning"
> 
> Signed-off-by: Stephen Rothwell <sfr@...b.auug.org.au>

thanks a lot!, and sorry for inconvenience
(I had same patch ready to send, but after some refactors I was fooled
to think that is not needed, sorry again)

> ---
>   drivers/iio/magnetometer/af8133j.c | 3 ++-
>   1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/magnetometer/af8133j.c b/drivers/iio/magnetometer/af8133j.c
> index d81d89af6283..acd291f3e792 100644
> --- a/drivers/iio/magnetometer/af8133j.c
> +++ b/drivers/iio/magnetometer/af8133j.c
> @@ -312,10 +312,11 @@ static int af8133j_set_scale(struct af8133j_data *data,
>   	 * When suspended, just store the new range to data->range to be
>   	 * applied later during power up.
>   	 */
> -	if (!pm_runtime_status_suspended(dev))
> +	if (!pm_runtime_status_suspended(dev)) {
>   		scoped_guard(mutex, &data->mutex)
>   			ret = regmap_write(data->regmap,
>   					   AF8133J_REG_RANGE, range);
> +	}
>   
>   	pm_runtime_enable(dev);
>   


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ