fix unused

This commit is contained in:
christos 2014-01-25 21:11:20 +00:00
parent 1a2fe9d973
commit f5fe8e85e2
2 changed files with 9 additions and 5 deletions

View File

@ -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_allocate_resources(ACPI_HANDLE handle)
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 @@ acpi_allocate_resources(ACPI_HANDLE handle)
case ACPI_RESOURCE_TYPE_EXTENDED_IRQ:
memcpy(&resn->Data, &resp->Data,
sizeof(ACPI_RESOURCE_EXTENDED_IRQ));
xirq = (ACPI_RESOURCE_EXTENDED_IRQ *)&resn->Data;
#if 0
xirq = (ACPI_RESOURCE_EXTENDED_IRQ *)&resn->Data;
/*
* XXX: Not duplicating the interrupt logic above
* because its not clear what it accomplishes.

View File

@ -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 @@ sys_pmc_control(struct lwp *l, const struct sys_pmc_control_args *uap, register_
int ctr, operation, error=0;
ctr = SCARG(uap, ctr);
__USE(ctr);
operation = SCARG(uap, op);
KERNEL_LOCK(1, NULL);
@ -140,6 +141,7 @@ sys_pmc_get_info(struct lwp *l, const struct sys_pmc_get_info_args *uap, registe
ctr = SCARG(uap, ctr);
request = SCARG(uap, op);
args = SCARG(uap, args);
__USE(flags);
KERNEL_LOCK(1, NULL);
nctrs = pmc_get_num_counters();