patch-2.3.34 linux/drivers/net/arlan-proc.c

Next file: linux/drivers/net/arlan.c
Previous file: linux/drivers/net/aironet4500_proc.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.33/linux/drivers/net/arlan-proc.c linux/drivers/net/arlan-proc.c
@@ -11,7 +11,6 @@
 /* void enableReceive(struct net_device* dev);
 */
 
-static  int	arlan_command(struct net_device * dev, int command);
 
 
 #define ARLAN_STR_SIZE 	0x2ff0
@@ -186,7 +185,7 @@
 			return "type A672T";
 	}
 }
-
+#ifdef ARLAN_DEBUGING
 static void arlan_print_diagnostic_info(struct net_device *dev)
 {
 	int i;
@@ -320,7 +319,6 @@
 	return 0;
 }
 
-
 static int arlan_setup_card_by_book(struct net_device *dev)
 {
 	u_char irqLevel, configuredStatusFlag;
@@ -396,7 +394,7 @@
 
 	return 0;		/* no errors */
 }
-
+#endif
 
 #ifdef ARLAN_PROC_INTERFACE
 #ifdef ARLAN_PROC_SHM_DUMP
@@ -820,7 +818,15 @@
 #define CTBLN(num,card,nam) \
         {num , #nam, &(arlan_conf[card].nam), \
          sizeof(int), 0600, NULL, &proc_dointvec}
+#ifdef ARLAN_DEBUGING
 
+#define ARLAN_PROC_DEBUG_ENTRIES	{48, "entry_exit_debug", &arlan_entry_and_exit_debug, \
+                sizeof(int), 0600, NULL, &proc_dointvec},\
+	{49, "debug", &arlan_debug, \
+                sizeof(int), 0600, NULL, &proc_dointvec},
+#else 
+#define ARLAN_PROC_DEBUG_ENTRIES
+#endif
 
 #define ARLAN_SYSCTL_TABLE_TOTAL(cardNo)\
 	CTBLN(1,cardNo,spreadingCode),\
@@ -871,10 +877,7 @@
 	CTBLN(45,cardNo,radioType),\
 	CTBLN(46,cardNo,writeEEPROM),\
 	CTBLN(47,cardNo,writeRadioType),\
-	{48, "entry_exit_debug", &arlan_entry_and_exit_debug, \
-                sizeof(int), 0600, NULL, &proc_dointvec},\
-	{49, "debug", &arlan_debug, \
-                sizeof(int), 0600, NULL, &proc_dointvec},\
+	ARLAN_PROC_DEBUG_ENTRIES\
 	CTBLN(50,cardNo,in_speed),\
 	CTBLN(51,cardNo,out_speed),\
 	CTBLN(52,cardNo,in_speed10),\
@@ -1010,7 +1013,8 @@
 };
 #endif
 
-static int mmtu = 1234;
+
+// static int mmtu = 1234;
 
 static ctl_table arlan_root_table[] =
 {
@@ -1019,11 +1023,11 @@
 };
 
 /* Make sure that /proc/sys/dev is there */
-static ctl_table arlan_device_root_table[] =
-{
-	{CTL_DEV, "dev", NULL, 0, 0555, arlan_root_table},
-	{0}
-};
+//static ctl_table arlan_device_root_table[] =
+//{
+//	{CTL_DEV, "dev", NULL, 0, 0555, arlan_root_table},
+//	{0}
+//};
 
 
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)