linux-next: build failure after merge of the net-next tree
Hi all,
After merging the net-next tree, today's linux-next build (powerpc allyesconfig) failed like this:
drivers/net/ethernet/chelsio/cxgb4vf/built-in.o:(.opd+0x630): multiple definition of t4_bar2_sge_qregs' drivers/net/ethernet/chelsio/cxgb4/built-in.o:(.opd+0x14d0): first defined here drivers/net/ethernet/chelsio/cxgb4vf/built-in.o: In function .t4_bar2_sge_qregs':
(.text+0x9220): multiple definition of `.t4_bar2_sge_qregs' drivers/net/ethernet/chelsio/cxgb4/built-in.o:(.text+0x24e24): first defined here
Caused by commit e85c9a7abfa4 ("cxgb4/cxgb4vf: Add code to calculate T5 BAR2 Offsets for SGE Queue Registers") which added both versions. :-(
I have applied this fir patch for today (including the subject typo :-)):
From: Stephen Rothwell <[email protected]>
Date: Wed, 10 Dec 2014 19:48:02 +1100
Subject: [PATCH] cxgb4/cxgb4vf: global named must be unique
--- drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 2 +- drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c | 4 ++-- drivers/net/ethernet/chelsio/cxgb4/sge.c | 2 +- drivers/net/ethernet/chelsio/cxgb4/t4_hw.c | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-)
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +1 -1
@@ -1007,7 +1007,7 @@ int t4_prep_fw(struct adapter *adap, struct fw_info *fw_info,int t4_prep_adapter (struct adapter *adapter);enum t4_bar2_qtype {T4_BAR2_QTYPE_EGRESS ,T4_BAR2_QTYPE_INGRESS }; -int t4_bar2_sge_qregs(struct adapter *adapter, +int cxgb4_t4_bar2_sge_qregs(struct adapter *adapter, unsigned int qid, enum t4_bar2_qtype qtype, u64 *pbar2_qoffset,
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c +2 -2
@@ -3815,7 +3815,7 @@ int cxgb4_bar2_sge_qregs(struct net_device *dev,u64 *pbar2_qoffset, unsigned int *pbar2_qid) { - return t4_bar2_sge_qregs(netdev2adap(dev), + return cxgb4_t4_bar2_sge_qregs(netdev2adap(dev),qid , (qtype == CXGB4_BAR2_QTYPE_EGRESS ? T4_BAR2_QTYPE_EGRESS
@@ -4011,7 +4011,7 @@ static void process_db_drop(struct work_struct *work)unsigned int bar2_qid;int ret; - ret =t4_bar2_sge_qregs (adap, qid,T4_BAR2_QTYPE_EGRESS , + ret =cxgb4_t4_bar2_sge_qregs (adap, qid,T4_BAR2_QTYPE_EGRESS , &bar2_qoffset, &bar2_qid);if (ret) dev_err(adap->pdev_dev, "doorbell drop recovery: "
drivers/net/ethernet/chelsio/cxgb4/sge.c +1 -1
@@ -2270,7 +2270,7 @@ static void __iomem *bar2_address(struct adapter *adapter,u64 bar2_qoffset;int ret; - ret =t4_bar2_sge_qregs (adapter, qid, qtype, + ret =cxgb4_t4_bar2_sge_qregs (adapter, qid, qtype, &bar2_qoffset, pbar2_qid);if (ret)return NULL ;
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +2 -2
@@ -4031,7 +4031,7 @@ int t4_prep_adapter(struct adapter *adapter) }/** -* t4_bar2_sge_qregs - return BAR2 SGE Queue register information +* cxgb4_t4_bar2_sge_qregs - return BAR2 SGE Queue register information * @adapter: the adapter * @qid: the Queue ID * @qtype: the Ingress or Egress type for @qid
@@ -4055,7 +4055,7 @@ int t4_prep_adapter(struct adapter *adapter)* Write Combining Doorbell Buffer. If the BAR2 Queue ID is not 0, * then these "Inferred Queue ID" register may not be used. */ -int t4_bar2_sge_qregs(struct adapter *adapter, +int cxgb4_t4_bar2_sge_qregs(struct adapter *adapter, unsigned int qid, enum t4_bar2_qtype qtype, u64 *pbar2_qoffset,
Signature · 5 lines
2.1.3 -- Cheers, Stephen Rothwell [email protected]
Quoted 11 lines · Stephen Rothwell
Hi all,
After merging the net-next tree, today's linux-next build (powerpc allyesconfig) failed like this:
drivers/net/ethernet/chelsio/cxgb4vf/built-in.o:(.opd+0x630): multiple definition of
t4_bar2_sge_qregs' drivers/net/ethernet/chelsio/cxgb4/built-in.o:(.opd+0x14d0): first defined here drivers/net/ethernet/chelsio/cxgb4vf/built-in.o: In function.t4_bar2_sge_qregs':
(.text+0x9220): multiple definition of `.t4_bar2_sge_qregs' drivers/net/ethernet/chelsio/cxgb4/built-in.o:(.text+0x24e24): first defined here
Quoted 6 lines
Caused by commit
e85c9a7abfa4("cxgb4/cxgb4vf: Add code to calculate T5 BAR2 Offsets for SGE Queue Registers") which added both versions. :-(I have applied this fir patch for today (including the subject typo :-)):
My bad. Thanks for the fix.
From: Stephen Rothwell <[email protected]>
Date: Wed, 10 Dec 2014 19:54:05 +1100
Quoted 5 lines
From: Stephen Rothwell <[email protected]>
Date: Wed, 10 Dec 2014 19:48:02 +1100
Subject: [PATCH] cxgb4/cxgb4vf: global named must be uniqueSigned-off-by Stephen Rothwell <[email protected]>
Applied, thanks.