[SCSI] cnic: fix error: implicit declaration of function ‘__symbol_get’
authorIngo Molnar <mingo@elte.hu>
Sat, 13 Jun 2009 06:29:33 +0000 (08:29 +0200)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 13 Jun 2009 14:07:51 +0000 (09:07 -0500)
 drivers/net/cnic.c: In function ‘init_bnx2_cnic’:
 drivers/net/cnic.c:2520: error: implicit declaration of function ‘__symbol_get’
 drivers/net/cnic.c:2520: warning: assignment makes pointer from integer without a cast
 make[1]: *** [drivers/net/cnic.o] Error 1
 make: *** [drivers/net/cnic.o] Error 2

Caused by not including linux/module.h

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/net/cnic.c

index a9e2fd35bb415bfe3c19851e251305134401ce06..44f77eb1180f4c57fbf523fc809ea08254ca8454 100644 (file)
@@ -25,6 +25,8 @@
 #include <linux/delay.h>
 #include <linux/ethtool.h>
 #include <linux/if_vlan.h>
+#include <linux/module.h>
+
 #if defined(CONFIG_VLAN_8021Q) || defined(CONFIG_VLAN_8021Q_MODULE)
 #define BCM_VLAN 1
 #endif