Re: [PATCH] HID: lenovo: Fix to ensure the data as __le32 instead of u32

From: Jiri Kosina
Date: Tue Mar 04 2025 - 15:13:20 EST


On Tue, 14 Jan 2025, Vishnu Sankar wrote:

> Ensure that data is treated as __le32 instead of u32 before
> applying le32_to_cpu.
> This patch fixes the sparse warning "sparse: cast to restricted __le32".
>
> Signed-off-by: Vishnu Sankar <vishnuocv@xxxxxxxxx>
> Signed-off-by: Vishnu Sankar <vsankar@xxxxxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> Closes: https://lore.kernel.org/oe-kbuild-all/202501101635.qJrwAOwf-lkp@xxxxxxxxx/

Sorry for the delay, this fell in between cracks. Now applied.

--
Jiri Kosina
SUSE Labs