net: mvpp2: mvpp2_check_hw_buf_num() can be static
authorkbuild test robot <fengguang.wu@intel.com>
Tue, 6 Mar 2018 05:05:06 +0000 (13:05 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Mar 2018 17:21:45 +0000 (12:21 -0500)
Fixes: effbf5f58d64 ("net: mvpp2: update the BM buffer free/destroy logic")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/mvpp2.c

index ac0a0dc8f157585d98667df40bf200b47835e47a..338c94d44aea62c7655346e298abea0c21e91eca 100644 (file)
@@ -4295,7 +4295,7 @@ static void mvpp2_bm_bufs_free(struct device *dev, struct mvpp2 *priv,
 }
 
 /* Check number of buffers in BM pool */
-int mvpp2_check_hw_buf_num(struct mvpp2 *priv, struct mvpp2_bm_pool *bm_pool)
+static int mvpp2_check_hw_buf_num(struct mvpp2 *priv, struct mvpp2_bm_pool *bm_pool)
 {
        int buf_num = 0;