Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754806AbdC1J52 (ORCPT ); Tue, 28 Mar 2017 05:57:28 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:50017 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753702AbdC1J51 (ORCPT ); Tue, 28 Mar 2017 05:57:27 -0400 From: Arnd Bergmann To: Giuseppe Cavallaro , Alexandre Torgue Cc: Arnd Bergmann , "David S. Miller" , Joao Pinto , LABBE Corentin , Thierry Reding , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] [net-next] stmmac: use netif_set_real_num_{rx,tx}_queues Date: Tue, 28 Mar 2017 11:48:21 +0200 Message-Id: <20170328094856.3457886-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:RAUGiEZMOR7W+xetrg2fHCQ9aPDod6NkUX6K3xQcQ3D13nS0S+h G3BlPGL2Ee1dHuKbHUMqRrbB+gK6U7Ap9YdcQKolSYBBxJzBu+iupWJ9lAFzXAK+o8kkz4N 15T24Udnc65xJQvWLsAQpoKggBw9jSvEXq7cP6CctGCJWSUd1snLoaan7ZH5rp5AVqPZhi8 ufTMbSxdJSIxpZv94Kk6w== X-UI-Out-Filterresults: notjunk:1;V01:K0:oTP8VQLqmGI=:kbt+qTFVBywBgfn27O9qmy fFFNlUkQpH7q3memX2S+HPw5wEAq2AOf4QJhzxunTWdyy9cTRq4SuRrRfa0/nRXOcoWZjbaMW 3PcZwijks93EmxPAe44h7V0Pe/wxkKHlMzbs9349vPHR4ZW2nNruW3m+TBi32otjNEjQN7TPQ HG+ivhabpE3zD77bWwBLH2q+OdGK3d9dk/jrvXhPFPjOCOyRm7dqj5bNArwZBWjeD+ujdDcPn 1k3m+B16VIMUg9uHl1sAijG4xhRTile2vAYIXOlVaEj0R9SR8sX1i9ghShc3EUujeBonkrE+F Ys1LxM/PaUULftlBCZ3qZPbv4+lEcURIigYwl4LpPYmU8dfB3TnwcPyYEjiY91O2xKD4sfEA4 GStS0558SnCVDo//fZ5AsSaTXEpuXNv/oD8/d/uT+28eJf2kQJpfvFi/gpVaabm+15bruW++9 wn8I0doSiRQnKUUGbn1I6xlty0heikMJ4T24Y0fExNaPzYS0nRCqzpshQyPX44jL9LHJv1Gv+ xLajecgNAM+fMHB91WoXTqDUKG+Q9cJBbbHhRXeGDIRE4I1RiANQL6Xvp1EfUmTfIRdOs1yy6 ZlgYQQLvbUY8E7hGooRn63cfRb7lNFMvsECgWDlL+xZjTGxAljLzMalle/BQl0SB38gI5WR5v FbrS+vsKbfF3KfSO4RJoQBNHDLY613oG0mNSuvGpydOeARCDYv9FcUE5sRErcmAI5gZ4= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1316 Lines: 30 A driver must not access the two fields directly but should instead use the helper functions to set the values and keep a consistent internal state: ethernet/stmicro/stmmac/stmmac_main.c: In function 'stmmac_dvr_probe': ethernet/stmicro/stmmac/stmmac_main.c:4083:8: error: 'struct net_device' has no member named 'real_num_rx_queues'; did you mean 'real_num_tx_queues'? Fixes: a8f5102af2a7 ("net: stmmac: TX and RX queue priority configuration") Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index c78f444ad423..fe1d9592956f 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c @@ -4080,8 +4080,8 @@ int stmmac_dvr_probe(struct device *device, goto error_hw_init; /* Configure real RX and TX queues */ - ndev->real_num_rx_queues = priv->plat->rx_queues_to_use; - ndev->real_num_tx_queues = priv->plat->tx_queues_to_use; + netif_set_real_num_rx_queues(ndev, priv->plat->rx_queues_to_use); + netif_set_real_num_tx_queues(ndev, priv->plat->tx_queues_to_use); priv->dma_buf_sz = STMMAC_ALIGN(buf_sz); -- 2.9.0