Skip to content

Commit 56e2e5d

Browse files
committed
korina: Fix conflict with global symbol desc_empty on x86.
Signed-off-by: David S. Miller <[email protected]>
1 parent ff254da commit 56e2e5d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

drivers/net/ethernet/korina.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*
1+
>/*
22
* Driver for the IDT RC32434 (Korina) on-chip ethernet controller.
33
*
44
* Copyright 2004 IDT Inc. ([email protected])
@@ -323,7 +323,7 @@ struct dma_reg {
323323

324324
enum chain_status {
325325
desc_filled,
326-
desc_empty
326+
desc_is_empty
327327
};
328328

329329
#define DMA_COUNT(count) ((count) & DMA_DESC_COUNT_MSK)
@@ -459,7 +459,7 @@ static int korina_send_packet(struct sk_buff *skb, struct net_device *dev)
459459
chain_next = (idx + 1) & KORINA_TDS_MASK;
460460

461461
if (readl(&(lp->tx_dma_regs->dmandptr)) == 0) {
462-
if (lp->tx_chain_status == desc_empty) {
462+
if (lp->tx_chain_status == desc_is_empty) {
463463
/* Update tail */
464464
td->control = DMA_COUNT(length) |
465465
DMA_DESC_COF | DMA_DESC_IOF;
@@ -486,10 +486,10 @@ static int korina_send_packet(struct sk_buff *skb, struct net_device *dev)
486486
&lp->tx_dma_regs->dmandptr);
487487
/* Move head to tail */
488488
lp->tx_chain_head = lp->tx_chain_tail;
489-
lp->tx_chain_status = desc_empty;
489+
lp->tx_chain_status = desc_is_empty;
490490
}
491491
} else {
492-
if (lp->tx_chain_status == desc_empty) {
492+
if (lp->tx_chain_status == desc_is_empty) {
493493
/* Update tail */
494494
td->control = DMA_COUNT(length) |
495495
DMA_DESC_COF | DMA_DESC_IOF;
@@ -868,7 +868,7 @@ korina_tx_dma_interrupt(int irq, void *dev_id)
868868
(readl(&(lp->tx_dma_regs->dmandptr)) == 0)) {
869869
writel(korina_tx_dma(lp, lp->tx_chain_head),
870870
&lp->tx_dma_regs->dmandptr);
871-
lp->tx_chain_status = desc_empty;
871+
lp->tx_chain_status = desc_is_empty;
872872
lp->tx_chain_head = lp->tx_chain_tail;
873873
netif_trans_update(dev);
874874
}
@@ -999,7 +999,7 @@ static int korina_alloc_ring(struct net_device *dev)
999999
}
10001000
lp->tx_next_done = lp->tx_chain_head = lp->tx_chain_tail =
10011001
lp->tx_full = lp->tx_count = 0;
1002-
lp->tx_chain_status = desc_empty;
1002+
lp->tx_chain_status = desc_is_empty;
10031003

10041004
/* Initialize the receive descriptors */
10051005
for (i = 0; i < KORINA_NUM_RDS; i++) {
@@ -1027,7 +1027,7 @@ static int korina_alloc_ring(struct net_device *dev)
10271027
lp->rx_next_done = 0;
10281028
lp->rx_chain_head = 0;
10291029
lp->rx_chain_tail = 0;
1030-
lp->rx_chain_status = desc_empty;
1030+
lp->rx_chain_status = desc_is_empty;
10311031

10321032
return 0;
10331033
}

0 commit comments

Comments
 (0)