The ehci_dump() function shouldn't be declared static, as it is

just a convenience function to be called from debuggers that gets
compiled in when EHCI_DEBUG is defined. Move its declaration to
make this more obvious.
This commit is contained in:
iedowse 2004-11-03 15:12:18 +00:00
parent 407b470258
commit bb28d10037

View File

@ -245,7 +245,6 @@ Static void ehci_abort_xfer(usbd_xfer_handle, usbd_status);
#ifdef EHCI_DEBUG
Static void ehci_dump_regs(ehci_softc_t *);
Static void ehci_dump(void);
Static ehci_softc_t *theehci;
Static void ehci_dump_link(ehci_link_t, int);
Static void ehci_dump_sqtds(ehci_soft_qtd_t *);
@ -1240,6 +1239,7 @@ ehci_dump_regs(ehci_softc_t *sc)
* Unused function - this is meant to be called from a kernel
* debugger.
*/
void ehci_dump(void);
void
ehci_dump()
{