[PATCH v3] net: stmmac: compare p->des0 and p->des1 with __le32 type values
Simon Horman
simon.horman at corigine.com
Fri May 19 06:17:34 PDT 2023
On Fri, May 19, 2023 at 07:50:28PM +0800, Min-Hua Chen wrote:
> [You don't often get email from minhuadotchen at gmail.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ]
>
> Use cpu_to_le32 to convert the constants to __le32 type
> before comparing them with p->des0 and p->des1 (they are __le32 type)
> and to fix following sparse warnings:
>
> drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c:110:23: sparse: warning: restricted __le32 degrades to integer
> drivers/net/ethernet/stmicro/stmmac/dwxgmac2_descs.c:110:50: sparse: warning: restricted __le32 degrades to integer
>
> Reviewed-by: Simon Horman <simon.horman at corigine.com>
> Signed-off-by: Min-Hua Chen <minhuadotchen at gmail.com>
Reviewed-by: Simon Horman <simon.horman at corigine.com>
More information about the linux-arm-kernel
mailing list