Skip to content

Commit 119c7ad

Browse files
arndbdavem330
authored andcommitted
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>
1 parent a679dbb commit 119c7ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
#include <linux/of_address.h>
1818
#include <linux/of_irq.h>
1919
#include <linux/device.h>
20+
#include <linux/vmalloc.h>
21+
2022
#include "hns_dsaf_main.h"
2123
#include "hns_dsaf_rcb.h"
2224
#include "hns_dsaf_ppe.h"

0 commit comments

Comments
 (0)