[patch] 2.4.0-test1-ac13 assorted warnings

From: Keith Owens (kaos@ocs.com.au)
Date: Sun Jun 11 2000 - 06:45:11 EST


In the never ending quest to get a kernel compile without warnings,
these patches get rid of assorted warnings. Several static functions
are defined but never used, they are #ifdeffed out. It is left to the
maintainers to decide if the functions should be removed.

Index: 0-test1-ac13.4/drivers/usb/usb-uhci-debug.h
--- 0-test1-ac13.4/drivers/usb/usb-uhci-debug.h Fri, 26 May 2000 13:10:01 +1000 kaos (linux-2.4/m/b/2_usb-uhci-d 1.1 644)
+++ 0-test1-ac13.4(w)/drivers/usb/usb-uhci-debug.h Sun, 11 Jun 2000 19:35:26 +1000 kaos (linux-2.4/m/b/2_usb-uhci-d 1.1 644)
@@ -91,7 +91,7 @@
         }
 }
 
-static void uhci_show_queue (puhci_desc_t qh)
+static void inline uhci_show_queue (puhci_desc_t qh)
 {
         uhci_desc_t *start_qh=qh;
 
Index: 0-test1-ac13.4/drivers/usb/usb-uhci.c
--- 0-test1-ac13.4/drivers/usb/usb-uhci.c Fri, 26 May 2000 13:10:01 +1000 kaos (linux-2.4/m/b/29_usb-uhci.c 1.1 644)
+++ 0-test1-ac13.4(w)/drivers/usb/usb-uhci.c Sun, 11 Jun 2000 19:33:25 +1000 kaos (linux-2.4/m/b/29_usb-uhci.c 1.1 644)
@@ -1433,7 +1433,9 @@
                 }
                 
                 ret = alloc_td (&td, UHCI_PTR_DEPTH);
+#ifdef ISO_SANITY_CHECK
         inval:
+#endif
                 if (ret) {
                         int i; // Cleanup allocated TDs
 
Index: 0-test1-ac13.4/drivers/usb/devio.c
--- 0-test1-ac13.4/drivers/usb/devio.c Sun, 28 May 2000 10:07:48 +1000 kaos (linux-2.4/m/b/40_devio.c 1.2 644)
+++ 0-test1-ac13.4(w)/drivers/usb/devio.c Sun, 11 Jun 2000 19:37:48 +1000 kaos (linux-2.4/m/b/40_devio.c 1.2 644)
@@ -514,6 +514,7 @@
 
 extern struct list_head usb_driver_list;
 
+#ifdef need_finddriver
 static int finddriver(struct usb_driver **driver, char *name)
 {
         struct list_head *tmp;
@@ -533,6 +534,7 @@
 
         return -EINVAL;
 }
+#endif
 
 /*
  * file operations
Index: 0-test1-ac13.4/drivers/usb/usb.c
--- 0-test1-ac13.4/drivers/usb/usb.c Sun, 28 May 2000 10:07:48 +1000 kaos (linux-2.4/n/b/16_usb.c 1.2 644)
+++ 0-test1-ac13.4(w)/drivers/usb/usb.c Sun, 11 Jun 2000 19:37:04 +1000 kaos (linux-2.4/n/b/16_usb.c 1.2 644)
@@ -158,6 +158,7 @@
         return NULL;
 }
 
+#ifdef need_calc_bus_time
 /*
  * calc_bus_time:
  *
@@ -194,7 +195,9 @@
         tmp = (8354L * (31L + 10L * BitTime (bytecount))) / 1000L;
         return (((input_dir) ? 7268L : 6265L) + BW_HOST_DELAY + tmp);
 } /* end calc_bus_time */
+#endif
 
+#ifdef need_check_bandwidth_alloc
 /*
  * check_bandwidth_alloc():
  *
@@ -234,6 +237,7 @@
 
         return (new_alloc <= FRAME_TIME_MAX_USECS_ALLOC) ? 0 : -1;
 } /* end check_bandwidth_alloc */
+#endif
 
 /*
  * New functions for (de)registering a controller
Index: 0-test1-ac13.4/drivers/net/ne.c
--- 0-test1-ac13.4/drivers/net/ne.c Wed, 07 Jun 2000 08:07:50 +1000 kaos (linux-2.4/X/b/40_ne.c 1.3 644)
+++ 0-test1-ac13.4(w)/drivers/net/ne.c Sun, 11 Jun 2000 19:32:38 +1000 kaos (linux-2.4/X/b/40_ne.c 1.3 644)
@@ -229,7 +229,7 @@
 
         for (i = 0; pci_clone_list[i].vendor != 0; i++) {
                 struct pci_dev *pdev = NULL;
- unsigned int pci_ioaddr;
+ unsigned int pci_ioaddr = 0;
 
                 while ((pdev = pci_find_device(pci_clone_list[i].vendor, pci_clone_list[i].dev_id, pdev))) {
                         if (pci_enable_device(pdev))

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Jun 15 2000 - 21:00:22 EST