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 Put back the variable declaration, too, and...



details:   https://anonhg.NetBSD.org/src/rev/1654e0a863d9
branches:  trunk
changeset: 829323:1654e0a863d9
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Jan 25 22:14:01 2018 +0000

description:
Put back the variable declaration, too, and mark it __diagused

Otherwise a DIAGNOSTIC kernel will complain about the variable being
undeclared.

diffstat:

 sys/arch/x86/pci/amdzentemp.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 95d83772ab9f -r 1654e0a863d9 sys/arch/x86/pci/amdzentemp.c
--- a/sys/arch/x86/pci/amdzentemp.c     Thu Jan 25 22:09:56 2018 +0000
+++ b/sys/arch/x86/pci/amdzentemp.c     Thu Jan 25 22:14:01 2018 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: amdzentemp.c,v 1.3 2018/01/25 21:23:36 pgoyette Exp $ */
+/*      $NetBSD: amdzentemp.c,v 1.4 2018/01/25 22:14:01 pgoyette Exp $ */
 /*      $OpenBSD: kate.c,v 1.2 2008/03/27 04:52:03 cnst Exp $   */
 
 /*
@@ -50,7 +50,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdzentemp.c,v 1.3 2018/01/25 21:23:36 pgoyette Exp $ ");
+__KERNEL_RCSID(0, "$NetBSD: amdzentemp.c,v 1.4 2018/01/25 22:14:01 pgoyette Exp $ ");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -98,6 +98,7 @@
 static int
 amdzentemp_match(device_t parent, cfdata_t match, void *aux)
 {
+       struct pci_attach_args *pa = aux __diagused;
 
        KASSERT(PCI_VENDOR(pa->pa_id) == PCI_VENDOR_AMD);
      



Home | Main Index | Thread Index | Old Index