[PATCH RESEND] firmware: raspberrypi: Fix type assignment

Florian Fainelli f.fainelli at gmail.com
Tue Jan 10 13:44:05 PST 2023


On Mon,  2 Jan 2023 12:52:55 +0100, Maxime Ripard <maxime at cerno.tech> wrote:
> We silently cast an unsigned int into a __le32 which makes sparse
> complain. Moreover, we never actually convert endianness between the
> CPU's and the expected little-endian value. Fix both at once by calling
> cpu_to_le32().
> 
> Fixes: 40c31955e4e9 ("firmware: raspberrypi: Provide a helper to query a clock max rate")
> Reported-by: kernel test robot <lkp at intel.com>
> Link: https://lore.kernel.org/r/20221116091712.1309651-3-maxime@cerno.tech
> Signed-off-by: Maxime Ripard <maxime at cerno.tech>
> ---

Applied to https://github.com/Broadcom/stblinux/commits/drivers/fixes, thanks!
--
Florian



More information about the linux-arm-kernel mailing list