Skip to contentSkip to conversation

fix undeclared hcd in ohci-sm501.c

PATCH Greg KH 1 participant 1 message Apr 15, 2008 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Greg KH

author
#1 lore raw
Quoted 4 lines · Reynes Philippe

The function ohci_sm501_resume in drivers/usb/host/ohci-hcd.c use the variable hcd, but this variable is undeclared in this function, so the compilation fails with this error :

Quoted 10 lines

CC drivers/usb/host/ohci-hcd.o
In file included from drivers/usb/host/ohci-hcd.c:1056:
drivers/usb/host/ohci-sm501.c: In function ?ohci_sm501_resume?:
drivers/usb/host/ohci-sm501.c:241: erreur: ?hcd? undeclared (first use in this function) drivers/usb/host/ohci-sm501.c:241: erreur: (Each undeclared identifier is reported only once drivers/usb/host/ohci-sm501.c:241: erreur: for each function it appears in.) make[3]: *** [drivers/usb/host/ohci-hcd.o] Erreur 1
make[2]: *** [drivers/usb/host] Erreur 2
make[1]: *** [drivers/usb] Erreur 2
make: *** [drivers] Erreur 2

I just merged a patch from Alan Stern into my tree that should fix this. Check the linux-next tree tomorrow to verify that it made it in.

thanks,

greg k-h