aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2014-12-10 03:48:02 -0500
committerDavid S. Miller <davem@davemloft.net>2014-12-10 15:52:39 -0500
commitdd0bcc0bc842e0d2c981102376d867c1a8bad320 (patch)
treea1cfcbf63549cf12be3cdcda126d88ba18a6cc47
parent22f10923dd39141785273e423b9acf347297e15f (diff)
cxgb4/cxgb4vf: global named must be unique
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4.h2
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c4
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/sge.c2
-rw-r--r--drivers/net/ethernet/chelsio/cxgb4/t4_hw.c4
4 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
index 2c37e1bf253a..a18d33fdb271 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
@@ -1007,7 +1007,7 @@ int t4_prep_fw(struct adapter *adap, struct fw_info *fw_info,
1007int t4_prep_adapter(struct adapter *adapter); 1007int t4_prep_adapter(struct adapter *adapter);
1008 1008
1009enum t4_bar2_qtype { T4_BAR2_QTYPE_EGRESS, T4_BAR2_QTYPE_INGRESS }; 1009enum t4_bar2_qtype { T4_BAR2_QTYPE_EGRESS, T4_BAR2_QTYPE_INGRESS };
1010int t4_bar2_sge_qregs(struct adapter *adapter, 1010int cxgb4_t4_bar2_sge_qregs(struct adapter *adapter,
1011 unsigned int qid, 1011 unsigned int qid,
1012 enum t4_bar2_qtype qtype, 1012 enum t4_bar2_qtype qtype,
1013 u64 *pbar2_qoffset, 1013 u64 *pbar2_qoffset,
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
index c8c5b3d36d4e..1645f59648f0 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
@@ -3815,7 +3815,7 @@ int cxgb4_bar2_sge_qregs(struct net_device *dev,
3815 u64 *pbar2_qoffset, 3815 u64 *pbar2_qoffset,
3816 unsigned int *pbar2_qid) 3816 unsigned int *pbar2_qid)
3817{ 3817{
3818 return t4_bar2_sge_qregs(netdev2adap(dev), 3818 return cxgb4_t4_bar2_sge_qregs(netdev2adap(dev),
3819 qid, 3819 qid,
3820 (qtype == CXGB4_BAR2_QTYPE_EGRESS 3820 (qtype == CXGB4_BAR2_QTYPE_EGRESS
3821 ? T4_BAR2_QTYPE_EGRESS 3821 ? T4_BAR2_QTYPE_EGRESS
@@ -4011,7 +4011,7 @@ static void process_db_drop(struct work_struct *work)
4011 unsigned int bar2_qid; 4011 unsigned int bar2_qid;
4012 int ret; 4012 int ret;
4013 4013
4014 ret = t4_bar2_sge_qregs(adap, qid, T4_BAR2_QTYPE_EGRESS, 4014 ret = cxgb4_t4_bar2_sge_qregs(adap, qid, T4_BAR2_QTYPE_EGRESS,
4015 &bar2_qoffset, &bar2_qid); 4015 &bar2_qoffset, &bar2_qid);
4016 if (ret) 4016 if (ret)
4017 dev_err(adap->pdev_dev, "doorbell drop recovery: " 4017 dev_err(adap->pdev_dev, "doorbell drop recovery: "
diff --git a/drivers/net/ethernet/chelsio/cxgb4/sge.c b/drivers/net/ethernet/chelsio/cxgb4/sge.c
index f12debd98dac..ebf935a1e352 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/sge.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/sge.c
@@ -2270,7 +2270,7 @@ static void __iomem *bar2_address(struct adapter *adapter,
2270 u64 bar2_qoffset; 2270 u64 bar2_qoffset;
2271 int ret; 2271 int ret;
2272 2272
2273 ret = t4_bar2_sge_qregs(adapter, qid, qtype, 2273 ret = cxgb4_t4_bar2_sge_qregs(adapter, qid, qtype,
2274 &bar2_qoffset, pbar2_qid); 2274 &bar2_qoffset, pbar2_qid);
2275 if (ret) 2275 if (ret)
2276 return NULL; 2276 return NULL;
diff --git a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
index 67345c73e570..28d04153f999 100644
--- a/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
+++ b/drivers/net/ethernet/chelsio/cxgb4/t4_hw.c
@@ -4031,7 +4031,7 @@ int t4_prep_adapter(struct adapter *adapter)
4031} 4031}
4032 4032
4033/** 4033/**
4034 * t4_bar2_sge_qregs - return BAR2 SGE Queue register information 4034 * cxgb4_t4_bar2_sge_qregs - return BAR2 SGE Queue register information
4035 * @adapter: the adapter 4035 * @adapter: the adapter
4036 * @qid: the Queue ID 4036 * @qid: the Queue ID
4037 * @qtype: the Ingress or Egress type for @qid 4037 * @qtype: the Ingress or Egress type for @qid
@@ -4055,7 +4055,7 @@ int t4_prep_adapter(struct adapter *adapter)
4055 * Write Combining Doorbell Buffer. If the BAR2 Queue ID is not 0, 4055 * Write Combining Doorbell Buffer. If the BAR2 Queue ID is not 0,
4056 * then these "Inferred Queue ID" register may not be used. 4056 * then these "Inferred Queue ID" register may not be used.
4057 */ 4057 */
4058int t4_bar2_sge_qregs(struct adapter *adapter, 4058int cxgb4_t4_bar2_sge_qregs(struct adapter *adapter,
4059 unsigned int qid, 4059 unsigned int qid,
4060 enum t4_bar2_qtype qtype, 4060 enum t4_bar2_qtype qtype,
4061 u64 *pbar2_qoffset, 4061 u64 *pbar2_qoffset,