summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
diff options
context:
space:
mode:
authorArnd Bergmann2015-10-16 11:30:56 +0200
committerDavid S. Miller2015-10-19 04:58:46 +0200
commit119c7ad8084affb64b242b7c6d9d9f84b91163cb (patch)
treea59441f4cb69d450488bed5a0b9c952506bb5aa9 /drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
parentMerge branch 'hns-fixes' (diff)
downloadkernel-qcow2-linux-119c7ad8084affb64b242b7c6d9d9f84b91163cb.tar.gz
kernel-qcow2-linux-119c7ad8084affb64b242b7c6d9d9f84b91163cb.tar.xz
kernel-qcow2-linux-119c7ad8084affb64b242b7c6d9d9f84b91163cb.zip
net: hisilicon: include linux/vmalloc.h in dsaf
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c')
-rw-r--r--drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
index ffc2604766b6..2a98eba660c0 100644
--- a/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
+++ b/drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
@@ -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"