Put UREAD4 under #ifdef UHCI_DEBUG as it is only used by a function for debugging which is also under UHCI_DEBUG.
uhci.c:256:1: error: unused function 'UREAD4' [-Werror,-Wunused-function] OK? Index: uhci.c =================================================================== RCS file: /home/cvs/src/sys/dev/usb/uhci.c,v retrieving revision 1.104 diff -u -p -r1.104 uhci.c --- uhci.c 9 Nov 2013 08:46:05 -0000 1.104 +++ uhci.c 3 Dec 2013 22:50:28 -0000 @@ -252,12 +252,14 @@ UREAD2(struct uhci_softc *sc, bus_size_t return bus_space_read_2(sc->iot, sc->ioh, r); } +#ifdef UHCI_DEBUG static __inline u_int32_t UREAD4(struct uhci_softc *sc, bus_size_t r) { UBARR(sc); return bus_space_read_4(sc->iot, sc->ioh, r); } +#endif #define UHCICMD(sc, cmd) UWRITE2(sc, UHCI_CMD, cmd) #define UHCISTS(sc) UREAD2(sc, UHCI_STS) -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.