Re: drivers/net/ethernet/freescale/ucc_geth.c:2454:64: sparse: sparse: incorrect type in argument 1 (different address spaces)
From: Linus Walleij
Date: Fri Nov 08 2024 - 06:41:41 EST
On Fri, Nov 8, 2024 at 11:30 AM Christophe Leroy
<christophe.leroy@xxxxxxxxxx> wrote:
> The problem is the __be16 in the function prototype.
>
> set_mac_addr(&p_82xx_addr_filt->taddr.h, p_enet_addr);
>
> p_82xx_addr_filt->taddr.h is a u16
> and out_be16() expects a u16*
>
> So the following fixes the above warnings:
Ah you are right of course, thanks! :)
Let's wait to the big rework you mentioned to land and I will try
to remember to revisit this in the v6.13 kernel cycle.
Yours,
Linus Walleij