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:
Ian Dowse 2004-11-03 15:12:18 +00:00
parent 5b410dcf85
commit b483f84d55
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=137156

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()
{