[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190417.232102.230088678014335132.davem@davemloft.net>
Date: Wed, 17 Apr 2019 23:21:02 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: yuehaibing@...wei.com
Cc: peppe.cavallaro@...com, alexandre.torgue@...com,
joabreu@...opsys.com, mcoquelin.stm32@...il.com,
aaro.koskinen@...ia.com, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-stm32@...md-mailman.stormreply.com, netdev@...r.kernel.org
Subject: Re: [PATCH] net: stmmac: Use bfsize1 in ndesc_init_rx_desc
From: Yue Haibing <yuehaibing@...wei.com>
Date: Wed, 17 Apr 2019 09:49:39 +0800
> From: YueHaibing <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>
Applied, thank you.
Powered by blists - more mailing lists