liquidio: declare liquidio_set_rxcsum_command static
authorNicholas Mc Guire <hofrat@osadl.org>
Mon, 22 Aug 2016 15:52:00 +0000 (17:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Aug 2016 23:53:55 +0000 (16:53 -0700)
liquidio_set_rxcsum_command is a local function only, no need to expose
it outside of lio_main.c so declare it static and make sparse happy.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c

index 20d6942edf40d3f5451fdb2f969504d1f1858684..f659a95ffc945d7283c20e55760f274213722da2 100644 (file)
@@ -3190,8 +3190,8 @@ static int liquidio_vlan_rx_kill_vid(struct net_device *netdev,
  *                              OCTNET_CMD_RXCSUM_DISABLE
  * @returns                     SUCCESS or FAILURE
  */
-int liquidio_set_rxcsum_command(struct net_device *netdev, int command,
-                               u8 rx_cmd)
+static int liquidio_set_rxcsum_command(struct net_device *netdev, int command,
+                                      u8 rx_cmd)
 {
        struct lio *lio = GET_LIO(netdev);
        struct octeon_device *oct = lio->oct_dev;