svn commit: r201795 - head/sys/dev/mly
Edward Tomasz Napierala
trasz at FreeBSD.org
Fri Jan 8 15:46:28 UTC 2010
Author: trasz
Date: Fri Jan 8 15:46:27 2010
New Revision: 201795
URL: http://svn.freebsd.org/changeset/base/201795
Log:
Put mly_timeout() under MLY_DEBUG, so that newer GCC versions don't
complain about unused static function.
Reviewed by: scottl
Modified:
head/sys/dev/mly/mly.c
Modified: head/sys/dev/mly/mly.c
==============================================================================
--- head/sys/dev/mly/mly.c Fri Jan 8 15:44:49 2010 (r201794)
+++ head/sys/dev/mly/mly.c Fri Jan 8 15:46:27 2010 (r201795)
@@ -117,9 +117,9 @@ static void mly_printstate(struct mly_so
static void mly_print_command(struct mly_command *mc);
static void mly_print_packet(struct mly_command *mc);
static void mly_panic(struct mly_softc *sc, char *reason);
+static int mly_timeout(struct mly_softc *sc);
#endif
void mly_print_controller(int controller);
-static int mly_timeout(struct mly_softc *sc);
static d_open_t mly_user_open;
@@ -2981,6 +2981,7 @@ mly_user_health(struct mly_softc *sc, st
return(error);
}
+#ifdef MLY_DEBUG
static int
mly_timeout(struct mly_softc *sc)
{
@@ -3000,3 +3001,4 @@ mly_timeout(struct mly_softc *sc)
return (0);
}
+#endif
More information about the svn-src-all
mailing list