(subset) [PATCH] mfd: macsmc: Fix key count endianness annotation

Lee Jones lee at kernel.org
Thu Aug 6 06:27:50 PDT 2026


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 [李琼斯]




More information about the linux-arm-kernel mailing list