Skip to content

Commit 57f2563

Browse files
author
Mukesh Kacker
committed
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 <[email protected]> Reviewed-by: Yuval Shaia <[email protected]>
1 parent cfffa5f commit 57f2563

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/rds/ib_recv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
*/
3333
#include <linux/kernel.h>
34+
#include <linux/vmalloc.h>
3435
#include <linux/pci.h>
3536
#include <linux/dma-mapping.h>
3637
#include <rdma/rdma_cm.h>

0 commit comments

Comments
 (0)