[Linux-stm32] [PATCH] net: stmmac: Use bfsize1 in ndesc_init_rx_desc
Koskinen, Aaro (Nokia - FI/Espoo)
aaro.koskinen at nokia.com
Wed Apr 17 12:14:14 UTC 2019
Hi,
From: Yue Haibing [yuehaibing at huawei.com]
> gcc warn this:
>
> drivers/net/ethernet/stmicro/stmmac/norm_desc.c: In function ndesc_init_rx_desc:
> drivers/net/ethernet/stmicro/stmmac/norm_desc.c:138:6: warning: variable 'bfsize1' set but not used [-Wunused-but-set-variable]
>
> Like enh_desc_init_rx_desc, we should use bfsize1
> in ndesc_init_rx_desc to calculate 'p->des1'
>
> Fixes: 583e63614149 ("net: stmmac: use correct DMA buffer size in the RX descriptor")
> Signed-off-by: YueHaibing <yuehaibing at huawei.com>
Reviewed-by: Aaro Koskinen <aaro.koskinen at nokia.com>
Thanks, looks like GCC 6.3.0 missed this.
A.
More information about the Linux-stm32
mailing list