dpaa2-eth: make dpaa2_eth_set_dist_key static
authorIoana Ciornei <ioana.ciornei@nxp.com>
Fri, 12 Oct 2018 16:27:29 +0000 (16:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Oct 2018 05:23:19 +0000 (22:23 -0700)
The dpaa2_eth_set_dist_key function is only used in a single file.
Make it static.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c

index 156080d..cf6de06 100644 (file)
@@ -2172,8 +2172,8 @@ int dpaa2_eth_cls_fld_off(int prot, int field)
 /* Set Rx distribution (hash or flow classification) key
  * flags is a combination of RXH_ bits
  */
-int dpaa2_eth_set_dist_key(struct net_device *net_dev,
-                          enum dpaa2_eth_rx_dist type, u64 flags)
+static int dpaa2_eth_set_dist_key(struct net_device *net_dev,
+                                 enum dpaa2_eth_rx_dist type, u64 flags)
 {
        struct device *dev = net_dev->dev.parent;
        struct dpaa2_eth_priv *priv = netdev_priv(net_dev);