[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM0PR07MB6019956E9F0C5829C1ACDC5EF4250@AM0PR07MB6019.eurprd07.prod.outlook.com>
Date: Wed, 17 Apr 2019 12:14:14 +0000
From: "Koskinen, Aaro (Nokia - FI/Espoo)" <aaro.koskinen@...ia.com>
To: Yue Haibing <yuehaibing@...wei.com>,
"peppe.cavallaro@...com" <peppe.cavallaro@...com>,
"alexandre.torgue@...com" <alexandre.torgue@...com>,
"joabreu@...opsys.com" <joabreu@...opsys.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"mcoquelin.stm32@...il.com" <mcoquelin.stm32@...il.com>
CC: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-stm32@...md-mailman.stormreply.com"
<linux-stm32@...md-mailman.stormreply.com>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: RE: [PATCH] net: stmmac: Use bfsize1 in ndesc_init_rx_desc
Hi,
From: Yue Haibing [yuehaibing@...wei.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@...wei.com>
Reviewed-by: Aaro Koskinen <aaro.koskinen@...ia.com>
Thanks, looks like GCC 6.3.0 missed this.
A.
Powered by blists - more mailing lists