]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: directly include header for vmalloc/vfree in ib_recv.c
authorMukesh Kacker <mukesh.kacker@oracle.com>
Sat, 9 May 2015 02:47:56 +0000 (19:47 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 8 Jul 2015 21:00:17 +0000 (14:00 -0700)
commit57f2563085e1ad3fc114856254f87f1bdd4e24b5
treedb8df0d91a5370c9a02b6eb49e9164bc72f8704b
parentcfffa5f1f5bfbce29e653b4a9e73f47bfbd881d4
rds: directly include header for vmalloc/vfree in ib_recv.c

Directly include <linux/vmalloc.h> 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 <mukesh.kacker@oracle.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
net/rds/ib_recv.c