[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <169513533778.3252260.12959111862312719443.b4-ty@kernel.org>
Date: Tue, 19 Sep 2023 15:55:37 +0100
From: Lee Jones <lee@...nel.org>
To: Pavel Machek <pavel@....cz>, Lee Jones <lee@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Tom Rix <trix@...hat.com>,
Justin Stitt <justinstitt@...gle.com>
Cc: linux-leds@...r.kernel.org, linux-kernel@...r.kernel.org,
llvm@...ts.linux.dev
Subject: Re: (subset) [PATCH] leds: pca955x: fix
-Wvoid-pointer-to-enum-cast warning
On Wed, 16 Aug 2023 19:37:52 +0000, Justin Stitt wrote:
> When building with clang 18 I see the following warning:
> | drivers/leds/leds-pca955x.c:487:15: warning: cast to smaller integer
> | type 'enum pca955x_type' from 'const void *' [-Wvoid-pointer-to-enum-cast]
> | 487 | chip_type = (enum pca955x_type)md;
>
> This is due to the fact that `md` is a void* while `enum pca995x_type` has the
> size of an int.
>
> [...]
Applied, thanks!
[1/1] leds: pca955x: fix -Wvoid-pointer-to-enum-cast warning
commit: 0e2e05099162c089a9b4dac563ae71b4c01a5f8b
--
Lee Jones [李琼斯]
Powered by blists - more mailing lists