Skip to content

Commit

Permalink
net: fix build failure in xilinx
Browse files Browse the repository at this point in the history
Commit 71c6c83 (drivers/net: fix tasklet misuse issue) introduced a
build failure in the xilinx driver. axienet_dma_err_handler isn't
declared before its use in axienet_open.

This patch provides the prototype before axienet_open.

Cc: Xiaotian Feng <dannyfeng@tencent.com>
Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Jeff Mahoney authored and David S. Miller committed Nov 20, 2012
1 parent 2355a62 commit aecb55b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/xilinx/xilinx_axienet_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,8 @@ static irqreturn_t axienet_rx_irq(int irq, void *_ndev)
return IRQ_HANDLED;
}

static void axienet_dma_err_handler(unsigned long data);

/**
* axienet_open - Driver open routine.
* @ndev: Pointer to net_device structure
Expand Down

0 comments on commit aecb55b

Please sign in to comment.