Skip to contentSkip to conversation

IB/hns: fix implicit irq include causing build fails in roce_eq

PATCH-next Paul Gortmaker 1 participant 1 message Jul 23, 2017

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

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 <[email protected]>
Cc "Wei Hu(Xavier)" <[email protected]>
Cc Doug Ledford <[email protected]>
Cc Sean Hefty <[email protected]>
Cc Hal Rosenstock <[email protected]>

---

[ Seen on current linux-next tree. ]

 drivers/infiniband/hw/hns/hns_roce_eq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/infiniband/hw/hns/hns_roce_eq.c +1 -0
index 50f864935a0e..e1e4c16ca3d5 100644
@@ -30,6 +30,7 @@
  * SOFTWARE.
  */
 
+#include <linux/interrupt.h>
 #include <linux/platform_device.h>
 #include "hns_roce_common.h"
 #include "hns_roce_device.h"
Signature · 1 line
2.11.0