net: cirrus: use u8 for addr to calm down sparse

ep93xx_eth.c:805:40: sparse: sparse: incorrect type in argument 2
(different address spaces)
ep93xx_eth.c:805:40: sparse: expected unsigned char const [usertype] *addr
ep93xx_eth.c:805:40: sparse: got void [noderef] __iomem *

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202409212354.9CiUem7B-lkp@intel.com/
Fixes: 858555bb5598 ("net: cirrus: add DT support for Cirrus EP93xx")
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
Acked-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by Nikita Shubin and committed by Arnd Bergmann 878716d4 d7333f9d

+3 -1
+3 -1
drivers/net/ethernet/cirrus/ep93xx_eth.c
··· 771 771 struct resource *mem; 772 772 void __iomem *base_addr; 773 773 struct device_node *np; 774 + u8 addr[ETH_ALEN]; 774 775 u32 phy_id; 775 776 int irq; 776 777 int err; ··· 803 802 goto err_out; 804 803 } 805 804 806 - eth_hw_addr_set(dev, base_addr + 0x50); 805 + memcpy_fromio(addr, base_addr + 0x50, ETH_ALEN); 806 + eth_hw_addr_set(dev, addr); 807 807 dev->ethtool_ops = &ep93xx_ethtool_ops; 808 808 dev->netdev_ops = &ep93xx_netdev_ops; 809 809 dev->features |= NETIF_F_SG | NETIF_F_HW_CSUM;