[PATCH-next] IB/hns: fix implicit irq include causing build fails in roce_eq

From: Paul Gortmaker
Date: Sun Jul 23 2017 - 09:54:25 EST


To fix:

drivers/infiniband/hw/hns/hns_roce_eq.c:477:1: error: unknown type name âirqreturn_tâ
static irqreturn_t hns_roce_msi_x_interrupt(int irq, void *eq_ptr)
^
drivers/infiniband/hw/hns/hns_roce_eq.c: In function âhns_roce_msi_x_interruptâ:
drivers/infiniband/hw/hns/hns_roce_eq.c:485:2: error: implicit declaration of function âIRQ_RETVALâ [-Werror=implicit-function-declaration]
return IRQ_RETVAL(int_work);
^
drivers/infiniband/hw/hns/hns_roce_eq.c: In function âhns_roce_init_eq_tableâ:
drivers/infiniband/hw/hns/hns_roce_eq.c:711:3: error: implicit declaration of function ârequest_irqâ [-Werror=implicit-function-declaration]
ret = request_irq(eq_table->eq[j].irq, hns_roce_msi_x_interrupt,
^
drivers/infiniband/hw/hns/hns_roce_eq.c:726:3: error: implicit declaration of function âfree_irqâ [-Werror=implicit-function-declaration]
free_irq(eq_table->eq[j].irq, eq_table->eq + j);
^

as seen on arm64 allmodconfig builds.

Cc: Lijun Ou <oulijun@xxxxxxxxxx>
Cc: "Wei Hu(Xavier)" <xavier.huwei@xxxxxxxxxx>
Cc: Doug Ledford <dledford@xxxxxxxxxx>
Cc: Sean Hefty <sean.hefty@xxxxxxxxx>
Cc: Hal Rosenstock <hal.rosenstock@xxxxxxxxx>
Cc: linux-rdma@xxxxxxxxxxxxxxx
Signed-off-by: Paul Gortmaker <paul.gortmaker@xxxxxxxxxxxxx>
---

[ Seen on current linux-next tree. ]

drivers/infiniband/hw/hns/hns_roce_eq.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/infiniband/hw/hns/hns_roce_eq.c b/drivers/infiniband/hw/hns/hns_roce_eq.c
index 50f864935a0e..e1e4c16ca3d5 100644
--- a/drivers/infiniband/hw/hns/hns_roce_eq.c
+++ b/drivers/infiniband/hw/hns/hns_roce_eq.c
@@ -30,6 +30,7 @@
* SOFTWARE.
*/

+#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include "hns_roce_common.h"
#include "hns_roce_device.h"
--
2.11.0