On Wednesday 27 October 2004 11:04, Stephen Hemminger wrote: > With 2.6.10 getting warning about ohci_restart() defined and not used > if !CONFIG_PM. Safe to just get rid of the declaration.
... except when CONFIG_PM! Better to just move it into "ohci-hub.c" where there's another block of forward declarations guarded by CONFIG_PM. - Dave
With 2.6.10 getting warning about ohci_restart() defined and not used if !CONFIG_PM. Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]> Signed-off-by: David Brownell <[EMAIL PROTECTED]> --- 1.87/drivers/usb/host/ohci-hcd.c Tue Oct 26 09:42:33 2004 +++ edited/drivers/usb/host/ohci-hcd.c Wed Oct 27 16:17:44 2004 @@ -140,7 +140,6 @@ static void ohci_dump (struct ohci_hcd *ohci, int verbose); static int ohci_init (struct ohci_hcd *ohci); -static int ohci_restart (struct ohci_hcd *ohci); static void ohci_stop (struct usb_hcd *hcd); #include "ohci-hub.c" --- 1.39/drivers/usb/host/ohci-hub.c Tue Oct 26 09:47:30 2004 +++ edited/drivers/usb/host/ohci-hub.c Wed Oct 27 16:20:07 2004 @@ -43,6 +43,7 @@ static void dl_done_list (struct ohci_hcd *, struct pt_regs *); static void finish_unlinks (struct ohci_hcd *, u16 , struct pt_regs *); +static int ohci_restart (struct ohci_hcd *ohci); static int ohci_hub_suspend (struct usb_hcd *hcd) {