From: Mukesh Kacker Date: Sat, 9 May 2015 02:47:56 +0000 (-0700) Subject: rds: directly include header for vmalloc/vfree in ib_recv.c X-Git-Tag: v4.1.12-92~293^2^2~12 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=57f2563085e1ad3fc114856254f87f1bdd4e24b5;p=users%2Fjedix%2Flinux-maple.git rds: directly include header for vmalloc/vfree in ib_recv.c Directly include in file ib_recv.c Without that we can get failure on non-x86 platforms where it may not get included indirectly. Without that we get the failure CC [M] net/rds/ib_recv.o net/rds/ib_recv.c: In function ‘rds_ib_srq_init’: net/rds/ib_recv.c:1530: error: implicit declaration of function ‘vmalloc’ net/rds/ib_recv.c:1531: warning: assignment makes pointer from integer without \ a cast net/rds/ib_recv.c: In function ‘rds_ib_srq_exit’: net/rds/ib_recv.c:1590: error: implicit declaration of function ‘vfree’ make[2]: *** [net/rds/ib_recv.o] Error 1 make[1]: *** [net/rds] Error 2 make: *** [net] Error 2 Orabug: 21059667 Signed-off-by: Mukesh Kacker Reviewed-by: Yuval Shaia --- diff --git a/net/rds/ib_recv.c b/net/rds/ib_recv.c index 1bd9cfcbddb3d..695bec7277c5c 100644 --- a/net/rds/ib_recv.c +++ b/net/rds/ib_recv.c @@ -31,6 +31,7 @@ * */ #include +#include #include #include #include