Re: [PATCH] i2c: cpm: Fix data type

From
Andi Shyti <andi.shyti@kernel.org>
Date
2023-12-06 01:48:01
Also in
linux-i2c, lkml
Reply to
Christophe Leroy, 2023-12-05
Hi Christophe,

On Tue, Dec 05, 2023 at 07:16:53PM +0100, Christophe Leroy wrote:
sparse reports an error on some data that gets converted from be32.

That's because that data is typed u32 instead of __be32.

Fix it.
the reason for this sparse error is that the data variables is
then parsed with a be32_to_cpup() and I think that's not
necessary.

I think the real fix here is to not use be32_to_cpup().

Andi
Thread (2 messages) 2 messages, 2 authors, last reply 2023-12-06
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help