Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/pci Use unsigned to fix compile error on i386.



details:   https://anonhg.NetBSD.org/src/rev/8756ea05e0d2
branches:  trunk
changeset: 457772:8756ea05e0d2
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Thu Jul 18 12:04:16 2019 +0000

description:
Use unsigned to fix compile error on i386.

diffstat:

 sys/arch/x86/pci/amdsmn.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (33 lines):

diff -r 68ca2dadaa74 -r 8756ea05e0d2 sys/arch/x86/pci/amdsmn.c
--- a/sys/arch/x86/pci/amdsmn.c Thu Jul 18 09:39:40 2019 +0000
+++ b/sys/arch/x86/pci/amdsmn.c Thu Jul 18 12:04:16 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdsmn.c,v 1.4 2019/07/18 08:53:41 msaitoh Exp $       */
+/*     $NetBSD: amdsmn.c,v 1.5 2019/07/18 12:04:16 msaitoh Exp $       */
 
 /*-
  * Copyright (c) 2017 Conrad Meyer <cem%FreeBSD.org@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdsmn.c,v 1.4 2019/07/18 08:53:41 msaitoh Exp $ ");
+__KERNEL_RCSID(0, "$NetBSD: amdsmn.c,v 1.5 2019/07/18 12:04:16 msaitoh Exp $ ");
 
 /*
  * Driver for the AMD Family 17h CPU System Management Network.
@@ -83,12 +83,12 @@
 amdsmn_match(device_t parent, cfdata_t match, void *aux) 
 {
        struct pci_attach_args *pa = aux;
-       int i;
+       unsigned int i;
 
        if (PCI_VENDOR(pa->pa_id) != PCI_VENDOR_AMD)
                return 0;
 
-       for (i = 0; i <  __arraycount(amdsmn_ids); i++)
+       for (i = 0; i < __arraycount(amdsmn_ids); i++)
                if (PCI_PRODUCT(pa->pa_id) == amdsmn_ids[i].amdsmn_deviceid)
                        return 2;
 



Home | Main Index | Thread Index | Old Index