Use __unused in function arguments where appropiate. (hi christos)
This commit is contained in:
parent
7dadf8e782
commit
4a09170d84
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: viapcib.c,v 1.4 2006/10/12 01:30:44 christos Exp $ */
|
||||
/* $NetBSD: viapcib.c,v 1.5 2006/10/12 06:56:48 xtraeme Exp $ */
|
||||
/* $FreeBSD: src/sys/pci/viapm.c,v 1.10 2005/05/29 04:42:29 nyan Exp $ */
|
||||
|
||||
/*-
|
||||
|
@ -55,7 +55,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: viapcib.c,v 1.4 2006/10/12 01:30:44 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: viapcib.c,v 1.5 2006/10/12 06:56:48 xtraeme Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -286,7 +286,7 @@ viapcib_busy(struct viapcib_softc *sc)
|
|||
}
|
||||
|
||||
static int
|
||||
viapcib_acquire_bus(void *opaque, int flags)
|
||||
viapcib_acquire_bus(void *opaque, int flags __unused)
|
||||
{
|
||||
struct viapcib_softc *sc;
|
||||
|
||||
|
@ -300,7 +300,7 @@ viapcib_acquire_bus(void *opaque, int flags)
|
|||
}
|
||||
|
||||
static void
|
||||
viapcib_release_bus(void *opaque, int flags)
|
||||
viapcib_release_bus(void *opaque, int flags __unused)
|
||||
{
|
||||
struct viapcib_softc *sc;
|
||||
|
||||
|
@ -315,7 +315,7 @@ viapcib_release_bus(void *opaque, int flags)
|
|||
|
||||
static int
|
||||
viapcib_exec(void *opaque, i2c_op_t op, i2c_addr_t addr, const void *vcmd,
|
||||
size_t cmdlen, void *vbuf, size_t buflen, int flags)
|
||||
size_t cmdlen, void *vbuf, size_t buflen, int flags __unused)
|
||||
{
|
||||
struct viapcib_softc *sc;
|
||||
uint8_t cmd;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: acpi_apm.c,v 1.6 2006/10/11 19:14:29 gdt Exp $ */
|
||||
/* $NetBSD: acpi_apm.c,v 1.7 2006/10/12 06:56:48 xtraeme Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
|
@ -42,7 +42,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_apm.c,v 1.6 2006/10/11 19:14:29 gdt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_apm.c,v 1.7 2006/10/12 06:56:48 xtraeme Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -114,14 +114,15 @@ CFATTACH_DECL(acpiapm, sizeof(struct apm_softc),
|
|||
|
||||
static int
|
||||
/*ARGSUSED*/
|
||||
acpiapm_match(struct device *parent, struct cfdata *match, void *aux)
|
||||
acpiapm_match(struct device *parent __unused,
|
||||
struct cfdata *match __unused, void *aux __unused)
|
||||
{
|
||||
return apm_match();
|
||||
}
|
||||
|
||||
static void
|
||||
/*ARGSUSED*/
|
||||
acpiapm_attach(struct device *parent, struct device *self, void *aux)
|
||||
acpiapm_attach(struct device *parent, struct device *self, void *aux __unused)
|
||||
{
|
||||
struct apm_softc *sc = (struct apm_softc *)self;
|
||||
|
||||
|
@ -223,14 +224,14 @@ SYSCTL_SETUP(sysctl_acpiapm_setup, "sysctl machdep.acpiapm subtree setup")
|
|||
|
||||
static void
|
||||
/*ARGSUSED*/
|
||||
acpiapm_disconnect(void *opaque)
|
||||
acpiapm_disconnect(void *opaque __unused)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
/*ARGSUSED*/
|
||||
acpiapm_enable(void *opaque, int onoff)
|
||||
acpiapm_enable(void *opaque __unused, int onoff __unused)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
@ -267,7 +268,8 @@ acpiapm_set_powstate(void *opaque, u_int devid, u_int powstat)
|
|||
|
||||
static int
|
||||
/*ARGSUSED*/
|
||||
acpiapm_get_powstat(void *opaque, u_int batteryid, struct apm_power_info *pinfo)
|
||||
acpiapm_get_powstat(void *opaque __unused, u_int batteryid __unused,
|
||||
struct apm_power_info *pinfo)
|
||||
{
|
||||
#define APM_BATT_FLAG_WATERMARK_MASK (APM_BATT_FLAG_CRITICAL | \
|
||||
APM_BATT_FLAG_LOW | \
|
||||
|
@ -381,7 +383,7 @@ acpiapm_get_powstat(void *opaque, u_int batteryid, struct apm_power_info *pinfo)
|
|||
|
||||
static int
|
||||
/*ARGSUSED*/
|
||||
acpiapm_get_event(void *opaque, u_int *event_type, u_int *event_info)
|
||||
acpiapm_get_event(void *opaque __unused, u_int *event_type, u_int *event_info)
|
||||
{
|
||||
if (capability_changed) {
|
||||
capability_changed = 0;
|
||||
|
@ -401,21 +403,22 @@ acpiapm_get_event(void *opaque, u_int *event_type, u_int *event_info)
|
|||
|
||||
static void
|
||||
/*ARGSUSED*/
|
||||
acpiapm_cpu_busy(void *opaque)
|
||||
acpiapm_cpu_busy(void *opaque __unused)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
/*ARGSUSED*/
|
||||
acpiapm_cpu_idle(void *opaque)
|
||||
acpiapm_cpu_idle(void *opaque __unused)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
static void
|
||||
/*ARGSUSED*/
|
||||
acpiapm_get_capabilities(void *opaque, u_int *numbatts, u_int *capflags)
|
||||
acpiapm_get_capabilities(void *opaque __unused, u_int *numbatts,
|
||||
u_int *capflags)
|
||||
{
|
||||
*numbatts = 1;
|
||||
*capflags = capabilities;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: apm.c,v 1.6 2006/10/04 22:44:50 dogcow Exp $ */
|
||||
/* $NetBSD: apm.c,v 1.7 2006/10/12 06:56:48 xtraeme Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -40,7 +40,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.6 2006/10/04 22:44:50 dogcow Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: apm.c,v 1.7 2006/10/12 06:56:48 xtraeme Exp $");
|
||||
|
||||
#include "opt_apm.h"
|
||||
|
||||
|
@ -359,7 +359,7 @@ apm_standby(struct apm_softc *sc)
|
|||
}
|
||||
|
||||
static void
|
||||
apm_resume(struct apm_softc *sc, u_int event_type, u_int event_info)
|
||||
apm_resume(struct apm_softc *sc, u_int event_type, u_int event_info __unused)
|
||||
{
|
||||
|
||||
if (sc->sc_power_state == PWR_RESUME) {
|
||||
|
@ -733,7 +733,7 @@ apm_thread(void *arg)
|
|||
}
|
||||
|
||||
int
|
||||
apmopen(dev_t dev, int flag, int mode, struct lwp *l)
|
||||
apmopen(dev_t dev, int flag, int mode __unused, struct lwp *l __unused)
|
||||
{
|
||||
int unit = APMUNIT(dev);
|
||||
int ctl = APM(dev);
|
||||
|
@ -782,7 +782,8 @@ apmopen(dev_t dev, int flag, int mode, struct lwp *l)
|
|||
}
|
||||
|
||||
int
|
||||
apmclose(dev_t dev, int flag, int mode, struct lwp *l)
|
||||
apmclose(dev_t dev, int flag __unused, int mode __unused,
|
||||
struct lwp *l __unused)
|
||||
{
|
||||
struct apm_softc *sc = apm_cd.cd_devs[APMUNIT(dev)];
|
||||
int ctl = APM(dev);
|
||||
|
@ -808,7 +809,8 @@ apmclose(dev_t dev, int flag, int mode, struct lwp *l)
|
|||
}
|
||||
|
||||
int
|
||||
apmioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct lwp *l)
|
||||
apmioctl(dev_t dev, u_long cmd, caddr_t data, int flag,
|
||||
struct lwp *l __unused)
|
||||
{
|
||||
struct apm_softc *sc = apm_cd.cd_devs[APMUNIT(dev)];
|
||||
struct apm_power_info *powerp;
|
||||
|
@ -935,7 +937,7 @@ filt_apmrdetach(struct knote *kn)
|
|||
}
|
||||
|
||||
static int
|
||||
filt_apmread(struct knote *kn, long hint)
|
||||
filt_apmread(struct knote *kn, long hint __unused)
|
||||
{
|
||||
struct apm_softc *sc = kn->kn_hook;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cgd.c,v 1.38 2006/10/12 01:30:50 christos Exp $ */
|
||||
/* $NetBSD: cgd.c,v 1.39 2006/10/12 06:57:27 xtraeme Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.38 2006/10/12 01:30:50 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cgd.c,v 1.39 2006/10/12 06:57:27 xtraeme Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -399,7 +399,7 @@ cgdiodone(struct buf *nbp)
|
|||
|
||||
/* XXX: we should probably put these into dksubr.c, mostly */
|
||||
static int
|
||||
cgdread(dev_t dev, struct uio *uio, int flags)
|
||||
cgdread(dev_t dev, struct uio *uio, int flags __unused)
|
||||
{
|
||||
struct cgd_softc *cs;
|
||||
struct dk_softc *dksc;
|
||||
|
@ -414,7 +414,7 @@ cgdread(dev_t dev, struct uio *uio, int flags)
|
|||
|
||||
/* XXX: we should probably put these into dksubr.c, mostly */
|
||||
static int
|
||||
cgdwrite(dev_t dev, struct uio *uio, int flags)
|
||||
cgdwrite(dev_t dev, struct uio *uio, int flags __unused)
|
||||
{
|
||||
struct cgd_softc *cs;
|
||||
struct dk_softc *dksc;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lockstat.c,v 1.2 2006/09/07 01:03:02 ad Exp $ */
|
||||
/* $NetBSD: lockstat.c,v 1.3 2006/10/12 06:56:47 xtraeme Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
|
@ -42,7 +42,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.2 2006/09/07 01:03:02 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lockstat.c,v 1.3 2006/10/12 06:56:47 xtraeme Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
|
@ -431,7 +431,8 @@ lockstat_event(uintptr_t lock, uintptr_t callsite, u_int flags, u_int count,
|
|||
* Accept an open() on /dev/lockstat.
|
||||
*/
|
||||
int
|
||||
lockstat_open(dev_t dev, int flag, int mode, struct lwp *l)
|
||||
lockstat_open(dev_t dev __unused, int flag __unused, int mode __unused,
|
||||
struct lwp *l __unused)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -454,7 +455,8 @@ lockstat_open(dev_t dev, int flag, int mode, struct lwp *l)
|
|||
* Accept the last close() on /dev/lockstat.
|
||||
*/
|
||||
int
|
||||
lockstat_close(dev_t dev, int flag, int mode, struct lwp *l)
|
||||
lockstat_close(dev_t dev __unused, int flag __unused, int mode __unused,
|
||||
struct lwp *l __unused)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
@ -473,7 +475,8 @@ lockstat_close(dev_t dev, int flag, int mode, struct lwp *l)
|
|||
* Handle control operations.
|
||||
*/
|
||||
int
|
||||
lockstat_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct lwp *l)
|
||||
lockstat_ioctl(dev_t dev __unused, u_long cmd, caddr_t data,
|
||||
int flag __unused, struct lwp *l __unused)
|
||||
{
|
||||
lsenable_t *le;
|
||||
int error;
|
||||
|
@ -547,7 +550,7 @@ lockstat_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct lwp *l)
|
|||
* Copy buffers out to user-space.
|
||||
*/
|
||||
int
|
||||
lockstat_read(dev_t dev, struct uio *uio, int flag)
|
||||
lockstat_read(dev_t dev __unused, struct uio *uio, int flag __unused)
|
||||
{
|
||||
int error;
|
||||
|
||||
|
|
Loading…
Reference in New Issue