]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
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)
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

index 1bd9cfcbddb3d760b62704722459ba78bb059965..695bec7277c5cc0485f96b91e1b63ea7fb493d02 100644 (file)
@@ -31,6 +31,7 @@
  *
  */
 #include <linux/kernel.h>
+#include <linux/vmalloc.h>
 #include <linux/pci.h>
 #include <linux/dma-mapping.h>
 #include <rdma/rdma_cm.h>