Re: (subset) [PATCH] mfd: macsmc: Fix key count endianness annotation
From: Lee Jones
Date: Thu Aug 06 2026 - 09:33:58 EST
On Sun, 19 Jul 2026 15:00:32 +0200, Sven Peter wrote:
> SMC firmware returns the value of the #KEY key in big-endian unlike most
> other keys. Reading it through apple_smc_read_u32() into a plain u32
> and then converting with be32_to_cpu() makes sparse complain:
>
> drivers/mfd/macsmc.c:462:26: sparse: cast to restricted __be32
>
> Read the raw value into a __be32 using apple_smc_read() instead.
>
> [...]
Applied, thanks!
[1/1] mfd: macsmc: Fix key count endianness annotation
commit: 0a29aa605286bcd01632eb6b61f59b9053312347
--
Lee Jones [李琼斯]