menuconfig 里勾选 Allwinner sun8i EMAC support 后编译报错如下:
drivers/net/ethernet/allwinner/sun8i-emac.c:1240:20: error: assignment to expression with array type
1240 | phydev->supported &= PHY_GBIT_FEATURES;
| ^~
drivers/net/ethernet/allwinner/sun8i-emac.c:1241:22: error: assignment to expression with array type
1241 | phydev->advertising = phydev->supported;
| ^
drivers/net/ethernet/allwinner/sun8i-emac.c: In function ‘sun8i_emac_alloc_rings’:
drivers/net/ethernet/allwinner/sun8i-emac.c:1274:16: error: implicit declaration of function ‘dma_zalloc_coherent’; did you mean ‘dma_alloc_coherent’? [-Werror=implicit-function-declaration]
1274 | priv->dd_rx = dma_zalloc_coherent(priv->dev,
| ^~~~~~~~~~~~~~~~~~~
| dma_alloc_coherent
请问有哪位朋友遇到类似问题吗?应该如何解决呢?我们开发环境是ubuntu 20.04
离线
内核没开对应的选项
离线