svn commit: r260673 - in stable/10/sys: dev/iicbus powerpc/powermac

Justin Hibbits jhibbits at FreeBSD.org
Wed Jan 15 05:52:07 UTC 2014


Author: jhibbits
Date: Wed Jan 15 05:52:06 2014
New Revision: 260673
URL: http://svnweb.freebsd.org/changeset/base/260673

Log:
  MFC r259082
  
  Make some unsigned ints signed.
  
  Found by:	clang (powerpc64)

Modified:
  stable/10/sys/dev/iicbus/ds1631.c
  stable/10/sys/dev/iicbus/ds1775.c
  stable/10/sys/powerpc/powermac/platform_powermac.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/iicbus/ds1631.c
==============================================================================
--- stable/10/sys/dev/iicbus/ds1631.c	Wed Jan 15 05:41:28 2014	(r260672)
+++ stable/10/sys/dev/iicbus/ds1631.c	Wed Jan 15 05:52:06 2014	(r260673)
@@ -398,7 +398,7 @@ ds1631_sensor_sysctl(SYSCTL_HANDLER_ARGS
 	device_t dev;
 	struct ds1631_softc *sc;
 	int error;
-	unsigned int temp;
+	int temp;
 
 	dev = arg1;
 	sc = device_get_softc(dev);

Modified: stable/10/sys/dev/iicbus/ds1775.c
==============================================================================
--- stable/10/sys/dev/iicbus/ds1775.c	Wed Jan 15 05:41:28 2014	(r260672)
+++ stable/10/sys/dev/iicbus/ds1775.c	Wed Jan 15 05:52:06 2014	(r260673)
@@ -257,7 +257,7 @@ ds1775_sensor_sysctl(SYSCTL_HANDLER_ARGS
 	device_t dev;
 	struct ds1775_softc *sc;
 	int error;
-	unsigned int temp;
+	int temp;
 
 	dev = arg1;
 	sc = device_get_softc(dev);

Modified: stable/10/sys/powerpc/powermac/platform_powermac.c
==============================================================================
--- stable/10/sys/powerpc/powermac/platform_powermac.c	Wed Jan 15 05:41:28 2014	(r260672)
+++ stable/10/sys/powerpc/powermac/platform_powermac.c	Wed Jan 15 05:52:06 2014	(r260673)
@@ -169,7 +169,8 @@ powermac_timebase_freq(platform_t plat, 
 static int
 powermac_smp_fill_cpuref(struct cpuref *cpuref, phandle_t cpu)
 {
-	cell_t cpuid, res;
+	cell_t cpuid;
+	int res;
 
 	cpuref->cr_hwref = cpu;
 	res = OF_getprop(cpu, "reg", &cpuid, sizeof(cpuid));


More information about the svn-src-all mailing list