ethtool: Fix build due to lack of ethtool.h include.
authorDavid S. Miller <davem@davemloft.net>
Tue, 21 Sep 2010 23:12:11 +0000 (16:12 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Sep 2010 23:12:11 +0000 (16:12 -0700)
net/core/ethtool.c: In function 'ethtool_get_regs':
net/core/ethtool.c:818:2: error: implicit declaration of function 'vmalloc'
net/core/ethtool.c:818:9: warning: assignment makes pointer from integer without a cast
net/core/ethtool.c:833:2: error: implicit declaration of function 'vfree'

Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c

index dae2fd053c2b3c51a8fed31c380e93034bcf04b7..7d7e572cedc7edb36b54f28de1c327629746d5b4 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/netdevice.h>
 #include <linux/bitops.h>
 #include <linux/uaccess.h>
+#include <linux/vmalloc.h>
 #include <linux/slab.h>
 
 /*