Some unused functions in ohci(4). #if 0 them out to appease the warnings but
keep the code around in case it will be used at some point in the future.
ohci.c:193:1: error: unused function 'OREAD1' [-Werror,-Wunused-function]
ohci.c:200:1: error: unused function 'OREAD2' [-Werror,-Wunused-function]
OK?
Index: ohci.c
===================================================================
RCS file: /home/cvs/src/sys/dev/usb/ohci.c,v
retrieving revision 1.116
diff -u -p -r1.116 ohci.c
--- ohci.c 9 Nov 2013 08:46:05 -0000 1.116
+++ ohci.c 3 Dec 2013 22:52:01 -0000
@@ -189,6 +189,7 @@ void ohci_dump_itds(struct ohci_soft_it
#define OWRITE4(sc, r, x) \
do { OBARR(sc); bus_space_write_4((sc)->iot, (sc)->ioh, (r), (x)); } while (0)
+#if 0
static __inline u_int8_t
OREAD1(struct ohci_softc *sc, bus_size_t r)
{
@@ -202,6 +203,7 @@ OREAD2(struct ohci_softc *sc, bus_size_t
OBARR(sc);
return bus_space_read_2(sc->iot, sc->ioh, r);
}
+#endif
static __inline u_int32_t
OREAD4(struct ohci_softc *sc, bus_size_t r)
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.