svn commit: r248050 - stable/9/sys/sparc64/sbus

Marius Strobl marius at FreeBSD.org
Fri Mar 8 12:52:53 UTC 2013


Author: marius
Date: Fri Mar  8 12:52:52 2013
New Revision: 248050
URL: http://svnweb.freebsd.org/changeset/base/248050

Log:
  MFC: r247601, r247621
  
  - Correct an incorrect argument to shutdown_nice(9).
  - Mark unused parameters as such.
  - Use NULL instead of 0 for pointers.

Modified:
  stable/9/sys/sparc64/sbus/sbus.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/sparc64/sbus/sbus.c
==============================================================================
--- stable/9/sys/sparc64/sbus/sbus.c	Fri Mar  8 12:50:31 2013	(r248049)
+++ stable/9/sys/sparc64/sbus/sbus.c	Fri Mar  8 12:52:52 2013	(r248050)
@@ -199,7 +199,7 @@ static driver_t sbus_driver = {
 
 static devclass_t sbus_devclass;
 
-EARLY_DRIVER_MODULE(sbus, nexus, sbus_driver, sbus_devclass, 0, 0,
+EARLY_DRIVER_MODULE(sbus, nexus, sbus_driver, sbus_devclass, NULL, NULL,
     BUS_PASS_BUS);
 MODULE_DEPEND(sbus, nexus, 1, 1, 1);
 MODULE_VERSION(sbus, 1);
@@ -898,7 +898,7 @@ sbus_get_devinfo(device_t bus, device_t 
  * The same needs to be done to PCI controller drivers.
  */
 static void
-sbus_overtemp(void *arg)
+sbus_overtemp(void *arg __unused)
 {
 	static int shutdown;
 
@@ -912,7 +912,7 @@ sbus_overtemp(void *arg)
 
 /* Try to shut down in time in case of power failure. */
 static void
-sbus_pwrfail(void *arg)
+sbus_pwrfail(void *arg __unused)
 {
 	static int shutdown;
 
@@ -921,7 +921,7 @@ sbus_pwrfail(void *arg)
 		return;
 	shutdown++;
 	printf("Power failure detected\nShutting down NOW.\n");
-	shutdown_nice(0);
+	shutdown_nice(RB_POWEROFF);
 }
 
 static int


More information about the svn-src-stable-9 mailing list