[ofa-general] [PATCH] vnic: include linux/vmalloc.h explicitly

Michael S. Tsirkin mst at mellanox.co.il
Wed Feb 28 03:58:46 PST 2007


Some VNIC files use vmalloc. These should include linux/vmalloc.h

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>
    
---

This has been applied to OFED git - it fixes build on 2.6.19, and I think
it's a good idea generally.

diff --git a/drivers/infiniband/ulp/vnic/vnic_control.c b/drivers/infiniband/ulp/vnic/vnic_control.c
index 2c55540..a199380 100644
--- a/drivers/infiniband/ulp/vnic/vnic_control.c
+++ b/drivers/infiniband/ulp/vnic/vnic_control.c
@@ -32,6 +32,7 @@
 
 #include <linux/netdevice.h>
 #include <linux/list.h>
+#include <linux/vmalloc.h>
 
 #include "vnic_util.h"
 #include "vnic_main.h"
diff --git a/drivers/infiniband/ulp/vnic/vnic_data.c b/drivers/infiniband/ulp/vnic/vnic_data.c
index c1d056a..33fa914 100644
--- a/drivers/infiniband/ulp/vnic/vnic_data.c
+++ b/drivers/infiniband/ulp/vnic/vnic_data.c
@@ -33,6 +33,7 @@
 #include <net/inet_sock.h>
 #include <linux/ip.h>
 #include <linux/if_ether.h>
+#include <linux/vmalloc.h>
 
 #include "vnic_util.h"
 #include "vnic_viport.h"

-- 
MST




More information about the general mailing list