Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 2014 04:38:03 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r273270 - head/sys/kern
Message-ID:  <201410190438.s9J4c3pZ070361@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: adrian
Date: Sun Oct 19 04:38:02 2014
New Revision: 273270
URL: https://svnweb.freebsd.org/changeset/base/273270

Log:
  Convert a missed u_char cpu -> int cpu.
  
  This was caught by a gcc build.
  
  Reported by:	luigi
  Sponsored by:	Norse Corp, Inc.

Modified:
  head/sys/kern/kern_intr.c

Modified: head/sys/kern/kern_intr.c
==============================================================================
--- head/sys/kern/kern_intr.c	Sat Oct 18 22:49:18 2014	(r273269)
+++ head/sys/kern/kern_intr.c	Sun Oct 19 04:38:02 2014	(r273270)
@@ -362,8 +362,7 @@ intr_setaffinity(int irq, void *m)
 {
 	struct intr_event *ie;
 	cpuset_t *mask;
-	u_char cpu;
-	int n;
+	int cpu, n;
 
 	mask = m;
 	cpu = NOCPU;
@@ -377,7 +376,7 @@ intr_setaffinity(int irq, void *m)
 				continue;
 			if (cpu != NOCPU)
 				return (EINVAL);
-			cpu = (u_char)n;
+			cpu = n;
 		}
 	}
 	ie = intr_lookup(irq);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410190438.s9J4c3pZ070361>