Against 2.4.0-test3-pre6, removes warnings about unused usb debug code
and "uninitialized" pci_ioaddr variable. The last one is always
initialized when it is used but gcc version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release) is too dumb to work that out.
Index: 0-test3-pre6.1/drivers/usb/usb-uhci-debug.h
--- 0-test3-pre6.1/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-test3-pre6.2/drivers/usb/usb-uhci-debug.h Sat, 08 Jul 2000 14:13:55 +1000 kaos (linux-2.4/m/b/2_usb-uhci-d 1.1.1.1 644)
@@ -1,5 +1,5 @@
#ifdef DEBUG
-static void uhci_show_qh (puhci_desc_t qh)
+static void __attribute__((__unused__)) uhci_show_qh (puhci_desc_t qh)
{
if (qh->type != QH_TYPE) {
dbg("qh has not QH_TYPE");
@@ -75,7 +75,7 @@
(td->hw.td.link & UHCI_PTR_DEPTH ? "Depth first" : "Breadth first"));
}
#ifdef DEBUG
-static void uhci_show_td_queue (puhci_desc_t td)
+static void __attribute__((__unused__)) uhci_show_td_queue (puhci_desc_t td)
{
//dbg("uhci_show_td_queue %p (%08lX):", td, virt_to_bus (td));
while (1) {
@@ -91,7 +91,7 @@
}
}
-static void uhci_show_queue (puhci_desc_t qh)
+static void __attribute__((__unused__)) uhci_show_queue (puhci_desc_t qh)
{
uhci_desc_t *start_qh=qh;
@@ -119,7 +119,7 @@
}
}
-static void uhci_show_sc (int port, unsigned short status)
+static void __attribute__((__unused__)) uhci_show_sc (int port, unsigned short status)
{
dbg(" stat%d = %04x %s%s%s%s%s%s%s%s",
port,
Index: 0-test3-pre6.1/drivers/net/ne.c
--- 0-test3-pre6.1/drivers/net/ne.c Wed, 21 Jun 2000 12:18:25 +1000 kaos (linux-2.4/X/b/40_ne.c 1.1.1.1 644)
+++ 0-test3-pre6.2/drivers/net/ne.c Sat, 08 Jul 2000 14:13:55 +1000 kaos (linux-2.4/X/b/40_ne.c 1.1.1.2 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 : Sat Jul 08 2000 - 00:33:36 EDT