提交 aecb55be 编写于 作者: J Jeff Mahoney 提交者: David S. Miller

net: fix build failure in xilinx

Commit 71c6c837 (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: NJeff Mahoney <jeffm@suse.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 2355a62b
...@@ -894,6 +894,8 @@ static irqreturn_t axienet_rx_irq(int irq, void *_ndev) ...@@ -894,6 +894,8 @@ static irqreturn_t axienet_rx_irq(int irq, void *_ndev)
return IRQ_HANDLED; return IRQ_HANDLED;
} }
static void axienet_dma_err_handler(unsigned long data);
/** /**
* axienet_open - Driver open routine. * axienet_open - Driver open routine.
* @ndev: Pointer to net_device structure * @ndev: Pointer to net_device structure
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册