]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitdb194f61d6ff744837c1493bffd6f2eee4548329
treea59441f4cb69d450488bed5a0b9c952506bb5aa9
parentaef2b6519747d7bb381e7f0cff763b907f08a9ee
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>
drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c