Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb use an unsigned type for unsigned calcations. a...



details:   https://anonhg.NetBSD.org/src/rev/5f82c961917b
branches:  trunk
changeset: 766785:5f82c961917b
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jul 01 23:48:20 2011 +0000

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

diffstat:

 sys/dev/usb/ehci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f33550adca1b -r 5f82c961917b sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Fri Jul 01 23:47:09 2011 +0000
+++ b/sys/dev/usb/ehci.c        Fri Jul 01 23:48:20 2011 +0000
@@ -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));



Home | Main Index | Thread Index | Old Index