ntb: intel: Make intel_ntb3_peer_db_addr static
authorYueHaibing <yuehaibing@huawei.com>
Wed, 20 Mar 2019 14:08:12 +0000 (22:08 +0800)
committerJon Mason <jdmason@kudzu.us>
Thu, 13 Jun 2019 12:53:19 +0000 (08:53 -0400)
Fix sparse warning:

drivers/ntb/hw/intel/ntb_hw_gen3.c:535:5: warning:
 symbol 'intel_ntb3_peer_db_addr' was not declared. Should it be static?

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/ntb/hw/intel/ntb_hw_gen3.c

index f475b56..c339716 100644 (file)
@@ -532,9 +532,9 @@ static int intel_ntb3_mw_set_trans(struct ntb_dev *ntb, int pidx, int idx,
        return 0;
 }
 
-int intel_ntb3_peer_db_addr(struct ntb_dev *ntb, phys_addr_t *db_addr,
-                               resource_size_t *db_size,
-                               u64 *db_data, int db_bit)
+static int intel_ntb3_peer_db_addr(struct ntb_dev *ntb, phys_addr_t *db_addr,
+                                  resource_size_t *db_size,
+                                  u64 *db_data, int db_bit)
 {
        phys_addr_t db_addr_base;
        struct intel_ntb_dev *ndev = ntb_ndev(ntb);