[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZmcZg+c0iOZtjqjr@opensource.cirrus.com>
Date: Mon, 10 Jun 2024 15:19:31 +0000
From: Charles Keepax <ckeepax@...nsource.cirrus.com>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
CC: Chanwoo Choi <cw00.choi@...sung.com>,
Krzysztof Kozlowski
<krzk@...nel.org>, Lee Jones <lee@...nel.org>,
Shawn Guo
<shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
"Pengutronix
Kernel Team" <kernel@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers
<ndesaulniers@...gle.com>,
Bill Wendling <morbo@...gle.com>,
Justin Stitt
<justinstitt@...gle.com>, <linux-kernel@...r.kernel.org>,
<imx@...ts.linux.dev>, <linux-arm-kernel@...ts.infradead.org>,
<patches@...nsource.cirrus.com>, <llvm@...ts.linux.dev>
Subject: Re: [PATCH 3/3] mfd: wm8994: Fix Wvoid-pointer-to-enum-cast warning
(again)
On Thu, Jun 06, 2024 at 04:36:48PM +0200, Krzysztof Kozlowski wrote:
> 'type' is an enum, thus cast of pointer on 64-bit compile test with
> clang and W=1 causes:
>
> wm8994-core.c:625:17: error: cast to smaller integer type 'enum wm8994_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast]
>
> Year ago this was solved, although LKML discussion suggested warning is
> not suitable for kernel. Nothing changed in this regard for a year, so
> assume the warning will stay and we want to have warnings-free builds.
>
> Link: https://lore.kernel.org/all/20230814160457.GA2836@dev-arch.thelio-3990X/
> Link: https://lore.kernel.org/all/20230810095849.123321-1-krzysztof.kozlowski@linaro.org/
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
> ---
Reviewed-by: Charles Keepax <ckeepax@...nsource.cirrus.com>
Thanks,
Charles
Powered by blists - more mailing lists