Module Name:    src
Committed By:   mrg
Date:           Fri Jul  1 23:48:21 UTC 2011

Modified Files:
        src/sys/dev/usb: ehci.c

Log Message:
use an unsigned type for unsigned calcations.  avoid GCC 4.5 warnings.


To generate a diff of this commit:
cvs rdiff -u -r1.180 -r1.181 src/sys/dev/usb/ehci.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/usb/ehci.c
diff -u src/sys/dev/usb/ehci.c:1.180 src/sys/dev/usb/ehci.c:1.181
--- src/sys/dev/usb/ehci.c:1.180	Thu Jun 30 20:09:40 2011
+++ src/sys/dev/usb/ehci.c	Fri Jul  1 23:48:20 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ehci.c,v 1.180 2011/06/30 20:09:40 wiz Exp $ */
+/*	$NetBSD: ehci.c,v 1.181 2011/07/01 23:48:20 mrg Exp $ */
 
 /*
  * Copyright (c) 2004-2008 The NetBSD Foundation, Inc.
@@ -52,7 +52,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.180 2011/06/30 20:09:40 wiz Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.181 2011/07/01 23:48:20 mrg Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -3988,7 +3988,7 @@
 			if (page_offs >= dma_buf->block->size)
 				break;
 
-			long long page = DMAADDR(dma_buf, page_offs);
+			unsigned long long page = DMAADDR(dma_buf, page_offs);
 			page = EHCI_PAGE(page);
 			itd->itd.itd_bufr[j] =
 			    htole32(EHCI_ITD_SET_BPTR(page));

Reply via email to