]> git.baikalelectronics.ru Git - kernel.git/commit
mpls: using vzalloc requires including vmalloc.h
authorStephen Rothwell <sfr@canb.auug.org.au>
Thu, 5 Mar 2015 02:37:05 +0000 (13:37 +1100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 6 Mar 2015 02:01:33 +0000 (21:01 -0500)
commit2815a9281ac92e037230a8f3d036317d0eaba363
tree66b7ae8b06cfdbf303f420537d45127157bc8335
parent912580bdebeca0b0c45a95c9e1abddd4f74b5b56
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: e420ba745219 ("mpls: Add a sysctl to control the size of the mpls label table")
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/mpls/af_mpls.c