提交 119c7ad8 编写于 作者: A Arnd Bergmann 提交者: David S. Miller

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: NArnd Bergmann <arnd@arndb.de>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 a679dbbb
...@@ -17,6 +17,8 @@ ...@@ -17,6 +17,8 @@
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_irq.h> #include <linux/of_irq.h>
#include <linux/device.h> #include <linux/device.h>
#include <linux/vmalloc.h>
#include "hns_dsaf_main.h" #include "hns_dsaf_main.h"
#include "hns_dsaf_rcb.h" #include "hns_dsaf_rcb.h"
#include "hns_dsaf_ppe.h" #include "hns_dsaf_ppe.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册