Module Name: src
Committed By: christos
Date: Mon Nov 4 16:58:14 UTC 2013
Modified Files:
src/sys/arch/alpha/pci: cia_dma.c pci_kn8ae.c
Log Message:
mark variables used
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/sys/arch/alpha/pci/cia_dma.c
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/alpha/pci/pci_kn8ae.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/arch/alpha/pci/cia_dma.c
diff -u src/sys/arch/alpha/pci/cia_dma.c:1.28 src/sys/arch/alpha/pci/cia_dma.c:1.29
--- src/sys/arch/alpha/pci/cia_dma.c:1.28 Sun Feb 5 21:14:14 2012
+++ src/sys/arch/alpha/pci/cia_dma.c Mon Nov 4 11:58:14 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: cia_dma.c,v 1.28 2012/02/06 02:14:14 matt Exp $ */
+/* $NetBSD: cia_dma.c,v 1.29 2013/11/04 16:58:14 christos Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: cia_dma.c,v 1.28 2012/02/06 02:14:14 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cia_dma.c,v 1.29 2013/11/04 16:58:14 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -424,7 +424,6 @@ cia_tlb_invalidate(void)
void
cia_broken_pyxis_tlb_invalidate(void)
{
- volatile uint64_t dummy;
uint32_t ctrl;
int i, s;
@@ -447,9 +446,11 @@ cia_broken_pyxis_tlb_invalidate(void)
* XXX to read more times than there are actual tags!
*/
for (i = 0; i < CIA_TLB_NTAGS + 4; i++) {
+ volatile uint64_t dummy;
dummy = *((volatile uint64_t *)
ALPHA_PHYS_TO_K0SEG(CIA_PCI_DENSE + CIA_PYXIS_BUG_BASE +
(i * 65536)));
+ __USE(dummy);
}
/*
Index: src/sys/arch/alpha/pci/pci_kn8ae.c
diff -u src/sys/arch/alpha/pci/pci_kn8ae.c:1.27 src/sys/arch/alpha/pci/pci_kn8ae.c:1.28
--- src/sys/arch/alpha/pci/pci_kn8ae.c:1.27 Sun Feb 5 21:14:15 2012
+++ src/sys/arch/alpha/pci/pci_kn8ae.c Mon Nov 4 11:58:14 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: pci_kn8ae.c,v 1.27 2012/02/06 02:14:15 matt Exp $ */
+/* $NetBSD: pci_kn8ae.c,v 1.28 2013/11/04 16:58:14 christos Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.27 2012/02/06 02:14:15 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pci_kn8ae.c,v 1.28 2013/11/04 16:58:14 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -215,6 +215,7 @@ dec_kn8ae_intr_disestablish(void *ccv, v
vec = IH_VEC(ih);
scb = &scb_iovectab[SCB_VECTOIDX(vec - SCB_IOVECBASE)];
+ __USE(scb);
kn8ae_enadis_intr(ccp, ih, 0);