Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys fix unused
details: https://anonhg.NetBSD.org/src/rev/b1ce8f1aed42
branches: trunk
changeset: 326332:b1ce8f1aed42
user: christos <christos%NetBSD.org@localhost>
date: Sat Jan 25 21:11:20 2014 +0000
description:
fix unused
diffstat:
sys/dev/acpi/acpi.c | 8 +++++---
sys/kern/sys_pmc.c | 6 ++++--
2 files changed, 9 insertions(+), 5 deletions(-)
diffs (72 lines):
diff -r bf1c5a677c6e -r b1ce8f1aed42 sys/dev/acpi/acpi.c
--- a/sys/dev/acpi/acpi.c Sat Jan 25 21:11:03 2014 +0000
+++ b/sys/dev/acpi/acpi.c Sat Jan 25 21:11:20 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: acpi.c,v 1.256 2013/10/16 17:30:42 christos Exp $ */
+/* $NetBSD: acpi.c,v 1.257 2014/01/25 21:11:20 christos Exp $ */
/*-
* Copyright (c) 2003, 2007 The NetBSD Foundation, Inc.
@@ -100,7 +100,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.256 2013/10/16 17:30:42 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: acpi.c,v 1.257 2014/01/25 21:11:20 christos Exp $");
#include "opt_acpi.h"
#include "opt_pcifixup.h"
@@ -1853,7 +1853,9 @@
ACPI_BUFFER bufp, bufc, bufn;
ACPI_RESOURCE *resp, *resc, *resn;
ACPI_RESOURCE_IRQ *irq;
+#if 0
ACPI_RESOURCE_EXTENDED_IRQ *xirq;
+#endif
ACPI_STATUS rv;
uint delta;
@@ -1891,8 +1893,8 @@
case ACPI_RESOURCE_TYPE_EXTENDED_IRQ:
memcpy(&resn->Data, &resp->Data,
sizeof(ACPI_RESOURCE_EXTENDED_IRQ));
+#if 0
xirq = (ACPI_RESOURCE_EXTENDED_IRQ *)&resn->Data;
-#if 0
/*
* XXX: Not duplicating the interrupt logic above
* because its not clear what it accomplishes.
diff -r bf1c5a677c6e -r b1ce8f1aed42 sys/kern/sys_pmc.c
--- a/sys/kern/sys_pmc.c Sat Jan 25 21:11:03 2014 +0000
+++ b/sys/kern/sys_pmc.c Sat Jan 25 21:11:20 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_pmc.c,v 1.10 2008/04/21 12:56:31 ad Exp $ */
+/* $NetBSD: sys_pmc.c,v 1.11 2014/01/25 21:11:49 christos Exp $ */
/*
* Copyright (c) 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_pmc.c,v 1.10 2008/04/21 12:56:31 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_pmc.c,v 1.11 2014/01/25 21:11:49 christos Exp $");
#include "opt_perfctrs.h"
@@ -71,6 +71,7 @@
int ctr, operation, error=0;
ctr = SCARG(uap, ctr);
+ __USE(ctr);
operation = SCARG(uap, op);
KERNEL_LOCK(1, NULL);
@@ -140,6 +141,7 @@
ctr = SCARG(uap, ctr);
request = SCARG(uap, op);
args = SCARG(uap, args);
+ __USE(flags);
KERNEL_LOCK(1, NULL);
nctrs = pmc_get_num_counters();
Home |
Main Index |
Thread Index |
Old Index