Skip to contentSkip to conversation

usb 'print_schedule_frame' defined but not used warning fix

PATCH In review Mariusz Kozlowski 1 participant 2 messages Oct 30, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 usb 'print_schedule_frame' defined but not used warning fix

Hello,

This is a simple fix for this warning:

drivers/usb/host/ehci-sched.c:270: warning: 'print_schedule_frame' defined but not used

The print_budget_frame() is not used anywhere in the kernel tree and serves debugging purposes only. This patch is against 2.6.19-rc3-mm1.

Regards,

Mariusz Kozlowski

---

--- linux-2.6.19-rc3-orig/drivers/usb/host/ehci-sched.c 2006-10-30 20:20:30.000000000 +0100
+++ linux-2.6.19-rc3/drivers/usb/host/ehci-sched.c 2006-10-30
20:39:08.000000000 +0100
@@ -206,6 +206,7 @@ periodic_next_shadow (union ehci_shadow
/* the following are merely frame-structure dumpers to aid in
debugging. Be careful of their use; they will introduce extreme latencies in what is [essentially] realtime code. */
+#if 0
static void print_budget_frame (struct ehci_hcd *ehci, int frame,
struct ehci_shadow_budget *insert, void *owner)
@@ -255,6 +256,7 @@ static void print_budget_frame (struct e

        }
        printk("\n");

}
+#endif

static void print_budget (struct ehci_hcd *ehci,
struct ehci_shadow_budget *insert,

#1 lore raw

Hello,

Quoted 7 lines

This is a simple fix for this warning:

drivers/usb/host/ehci-sched.c:270: warning: 'print_schedule_frame' defined but not used

The print_budget_frame() is not used anywhere in the kernel tree and serves debugging purposes only. This patch is against 2.6.19-rc3-mm1.

Ofcourse I ment print_schedule_frame(). Please ignore previous patch. Sorry.

Regards,

Mariusz Kozlowski

---

--- linux-2.6.19-rc3-orig/drivers/usb/host/ehci-sched.c 2006-10-30 21:13:42.000000000 +0100
+++ linux-2.6.19-rc3/drivers/usb/host/ehci-sched.c 2006-10-30
21:14:49.000000000 +0100
@@ -265,6 +265,7 @@ static void print_budget (struct ehci_hc

                print_budget_frame(ehci,i,insert,owner);

}

+#if 0
static void print_schedule_frame (char *pre,struct ehci_hcd *ehci, int frame,
void *insert)
{
@@ -333,6 +334,7 @@ static void print_schedule_frame (char *

        }
        printk("\n");

}
+#endif

/* find position of a specific entry in the periodic schedule (ie,
* returns pointers such that we can update the predecessor's