net: hisilicon: include linux/vmalloc.h in dsaf
authorArnd Bergmann <arnd@arndb.de>
Fri, 16 Oct 2015 09:30:56 +0000 (11:30 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Oct 2015 02:58:46 +0000 (19:58 -0700)
Some configurations fail to build the hns dsaf code because of
a missing header file:

ethernet/hisilicon/hns/hns_dsaf_main.c: In function 'hns_dsaf_init':
ethernet/hisilicon/hns/hns_dsaf_main.c:1096:2: error: implicit declaration of function 'vzalloc' [-Werror=implicit-function-declaration]
  priv->soft_mac_tbl = vzalloc(sizeof(*priv->soft_mac_tbl)

This adds the correct #include.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c

index ffc2604766b6b4baeccc3bd703580c4da3d3f885..2a98eba660c06a4dc3736bf84686a20d87597e20 100644 (file)
@@ -17,6 +17,8 @@
 #include <linux/of_address.h>
 #include <linux/of_irq.h>
 #include <linux/device.h>
+#include <linux/vmalloc.h>
+
 #include "hns_dsaf_main.h"
 #include "hns_dsaf_rcb.h"
 #include "hns_dsaf_ppe.h"