Skip to content

Commit 4b5edb2

Browse files
sfrothwelldavem330
authored andcommitted
mpls: using vzalloc requires including vmalloc.h
Fixes this build error: net/mpls/af_mpls.c: In function 'resize_platform_label_table': net/mpls/af_mpls.c:767:4: error: implicit declaration of function 'vzalloc' [-Werror=implicit-function-declaration] labels = vzalloc(size); ^ Fixes: 7720c01 ("mpls: Add a sysctl to control the size of the mpls label table") Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0e9974f commit 4b5edb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/mpls/af_mpls.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#include <linux/if_arp.h>
88
#include <linux/ipv6.h>
99
#include <linux/mpls.h>
10+
#include <linux/vmalloc.h>
1011
#include <net/ip.h>
1112
#include <net/dst.h>
1213
#include <net/sock.h>

0 commit comments

Comments
 (0)