Bump WARNS to 4.
This commit is contained in:
parent
ecad7beb9c
commit
70e14dc983
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: acpi_acad.c,v 1.45 2010/08/14 05:41:22 jruoho Exp $ */
|
||||
/* $NetBSD: acpi_acad.c,v 1.46 2010/10/25 07:48:03 jruoho Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2001 Wasabi Systems, Inc.
|
||||
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_acad.c,v 1.45 2010/08/14 05:41:22 jruoho Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_acad.c,v 1.46 2010/10/25 07:48:03 jruoho Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -189,7 +189,7 @@ acpiacad_get_status(void *arg)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if (sc->sc_status != status) {
|
||||
if (sc->sc_status != (int)status) {
|
||||
|
||||
/*
|
||||
* If status has changed, send the event:
|
||||
@ -315,7 +315,7 @@ static struct cfdata acpiacad_cfdata[] = {
|
||||
.cf_pspec = &acpiparent,
|
||||
},
|
||||
|
||||
{ NULL }
|
||||
{ NULL, NULL, 0, 0, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: acpi_bat.c,v 1.104 2010/08/14 05:41:22 jruoho Exp $ */
|
||||
/* $NetBSD: acpi_bat.c,v 1.105 2010/10/25 07:48:03 jruoho Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
@ -75,7 +75,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.104 2010/08/14 05:41:22 jruoho Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_bat.c,v 1.105 2010/10/25 07:48:03 jruoho Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/condvar.h>
|
||||
@ -179,7 +179,7 @@ static int acpibat_match(device_t, cfdata_t, void *);
|
||||
static void acpibat_attach(device_t, device_t, void *);
|
||||
static int acpibat_detach(device_t, int);
|
||||
static int acpibat_get_sta(device_t);
|
||||
static ACPI_OBJECT *acpibat_get_object(ACPI_HANDLE, const char *, int);
|
||||
static ACPI_OBJECT *acpibat_get_object(ACPI_HANDLE, const char *, uint32_t);
|
||||
static void acpibat_get_info(device_t);
|
||||
static void acpibat_print_info(device_t, ACPI_OBJECT *);
|
||||
static void acpibat_get_status(device_t);
|
||||
@ -311,7 +311,7 @@ acpibat_get_sta(device_t dv)
|
||||
}
|
||||
|
||||
static ACPI_OBJECT *
|
||||
acpibat_get_object(ACPI_HANDLE hdl, const char *pth, int count)
|
||||
acpibat_get_object(ACPI_HANDLE hdl, const char *pth, uint32_t count)
|
||||
{
|
||||
ACPI_OBJECT *obj;
|
||||
ACPI_BUFFER buf;
|
||||
@ -347,9 +347,10 @@ acpibat_get_info(device_t dv)
|
||||
{
|
||||
struct acpibat_softc *sc = device_private(dv);
|
||||
ACPI_HANDLE hdl = sc->sc_node->ad_handle;
|
||||
int capunit, i, rateunit, val;
|
||||
ACPI_OBJECT *elm, *obj;
|
||||
ACPI_STATUS rv = AE_OK;
|
||||
int capunit, i, rateunit;
|
||||
uint64_t val;
|
||||
|
||||
obj = acpibat_get_object(hdl, "_BIF", ACPIBAT_BIF_COUNT);
|
||||
|
||||
@ -505,9 +506,10 @@ acpibat_get_status(device_t dv)
|
||||
{
|
||||
struct acpibat_softc *sc = device_private(dv);
|
||||
ACPI_HANDLE hdl = sc->sc_node->ad_handle;
|
||||
int i, rate, state, val;
|
||||
ACPI_OBJECT *elm, *obj;
|
||||
ACPI_STATUS rv = AE_OK;
|
||||
int i, rate, state;
|
||||
uint64_t val;
|
||||
|
||||
obj = acpibat_get_object(hdl, "_BST", ACPIBAT_BST_COUNT);
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: acpi_button.c,v 1.38 2010/08/24 15:03:34 jruoho Exp $ */
|
||||
/* $NetBSD: acpi_button.c,v 1.39 2010/10/25 07:48:03 jruoho Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2001, 2003 Wasabi Systems, Inc.
|
||||
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_button.c,v 1.38 2010/08/24 15:03:34 jruoho Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_button.c,v 1.39 2010/10/25 07:48:03 jruoho Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -214,7 +214,7 @@ static struct cfdata acpibut_cfdata[] = {
|
||||
.cf_pspec = &acpiparent,
|
||||
},
|
||||
|
||||
{ NULL }
|
||||
{ NULL, NULL, 0, 0, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: acpi_lid.c,v 1.41 2010/08/24 15:03:34 jruoho Exp $ */
|
||||
/* $NetBSD: acpi_lid.c,v 1.42 2010/10/25 07:48:03 jruoho Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2001, 2003 Wasabi Systems, Inc.
|
||||
@ -40,7 +40,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_lid.c,v 1.41 2010/08/24 15:03:34 jruoho Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: acpi_lid.c,v 1.42 2010/10/25 07:48:03 jruoho Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -196,7 +196,7 @@ static struct cfdata acpilid_cfdata[] = {
|
||||
.cf_pspec = &acpiparent,
|
||||
},
|
||||
|
||||
{ NULL }
|
||||
{ NULL, NULL, 0, 0, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: thinkpad_acpi.c,v 1.30 2010/04/15 07:02:24 jruoho Exp $ */
|
||||
/* $NetBSD: thinkpad_acpi.c,v 1.31 2010/10/25 07:48:03 jruoho Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2007 Jared D. McNeill <jmcneill@invisible.ca>
|
||||
@ -27,7 +27,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: thinkpad_acpi.c,v 1.30 2010/04/15 07:02:24 jruoho Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: thinkpad_acpi.c,v 1.31 2010/10/25 07:48:03 jruoho Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -679,7 +679,7 @@ static struct cfdata thinkpad_cfdata[] = {
|
||||
.cf_pspec = &acpiparent,
|
||||
},
|
||||
|
||||
{ NULL }
|
||||
{ NULL, NULL, 0, 0, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: wmi_dell.c,v 1.5 2010/10/24 16:25:31 jmcneill Exp $ */
|
||||
/* $NetBSD: wmi_dell.c,v 1.6 2010/10/25 07:53:22 jruoho Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
|
||||
@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: wmi_dell.c,v 1.5 2010/10/24 16:25:31 jmcneill Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: wmi_dell.c,v 1.6 2010/10/25 07:53:22 jruoho Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -122,7 +122,7 @@ wmi_dell_detach(device_t self, int flags)
|
||||
{
|
||||
struct wmi_dell_softc *sc = device_private(self);
|
||||
device_t parent = sc->sc_parent;
|
||||
int i;
|
||||
size_t i;
|
||||
|
||||
(void)pmf_device_deregister(self);
|
||||
(void)acpi_wmi_event_deregister(parent);
|
||||
@ -256,7 +256,7 @@ static struct cfdata wmidell_cfdata[] = {
|
||||
.cf_pspec = &wmiparent,
|
||||
},
|
||||
|
||||
{ NULL }
|
||||
{ NULL, NULL, 0, 0, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: wmi_hp.c,v 1.3 2010/10/24 16:25:31 jmcneill Exp $ */
|
||||
/* $NetBSD: wmi_hp.c,v 1.4 2010/10/25 07:53:22 jruoho Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
|
||||
@ -57,7 +57,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: wmi_hp.c,v 1.3 2010/10/24 16:25:31 jmcneill Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: wmi_hp.c,v 1.4 2010/10/25 07:53:22 jruoho Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -554,7 +554,7 @@ static struct cfdata wmihp_cfdata[] = {
|
||||
.cf_pspec = &wmiparent,
|
||||
},
|
||||
|
||||
{ NULL }
|
||||
{ NULL, NULL, 0, 0, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: wmi_msi.c,v 1.2 2010/10/24 16:25:31 jmcneill Exp $ */
|
||||
/* $NetBSD: wmi_msi.c,v 1.3 2010/10/25 07:53:22 jruoho Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2010 The NetBSD Foundation, Inc.
|
||||
@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: wmi_msi.c,v 1.2 2010/10/24 16:25:31 jmcneill Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: wmi_msi.c,v 1.3 2010/10/25 07:53:22 jruoho Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
@ -217,7 +217,7 @@ static struct cfdata wmimsi_cfdata[] = {
|
||||
.cf_pspec = &wmiparent,
|
||||
},
|
||||
|
||||
{ NULL }
|
||||
{ NULL, NULL, 0, 0, NULL, 0, NULL }
|
||||
};
|
||||
|
||||
static int
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/02/28 17:40:51 jruoho Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/10/25 07:48:04 jruoho Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -7,4 +7,6 @@
|
||||
KMOD= acpiacad
|
||||
SRCS= acpi_acad.c
|
||||
|
||||
WARNS= 4
|
||||
|
||||
.include <bsd.kmodule.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.2 2010/03/21 07:09:56 pooka Exp $
|
||||
# $NetBSD: Makefile,v 1.3 2010/10/25 07:48:04 jruoho Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -8,4 +8,6 @@ KMOD= acpibat
|
||||
IOCONF= ACPIBAT.ioconf
|
||||
SRCS= acpi_bat.c
|
||||
|
||||
WARNS= 4
|
||||
|
||||
.include <bsd.kmodule.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/02/28 17:40:51 jruoho Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/10/25 07:48:04 jruoho Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -7,4 +7,6 @@
|
||||
KMOD= acpibut
|
||||
SRCS= acpi_button.c
|
||||
|
||||
WARNS= 4
|
||||
|
||||
.include <bsd.kmodule.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/02/28 17:40:51 jruoho Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/10/25 07:48:03 jruoho Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -7,4 +7,6 @@
|
||||
KMOD= acpilid
|
||||
SRCS= acpi_lid.c
|
||||
|
||||
WARNS= 4
|
||||
|
||||
.include <bsd.kmodule.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/10/24 18:29:33 jmcneill Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/10/25 07:53:22 jruoho Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -7,4 +7,6 @@
|
||||
KMOD= acpiwmi
|
||||
SRCS= wmi_acpi.c
|
||||
|
||||
WARNS= 4
|
||||
|
||||
.include <bsd.kmodule.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/02/28 17:40:51 jruoho Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/10/25 07:48:04 jruoho Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -7,4 +7,6 @@
|
||||
KMOD= thinkpad
|
||||
SRCS= thinkpad_acpi.c
|
||||
|
||||
WARNS= 4
|
||||
|
||||
.include <bsd.kmodule.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/10/24 16:31:36 jmcneill Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/10/25 07:53:22 jruoho Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -7,4 +7,6 @@
|
||||
KMOD= wmidell
|
||||
SRCS= wmi_dell.c
|
||||
|
||||
WARNS= 4
|
||||
|
||||
.include <bsd.kmodule.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/10/24 16:31:36 jmcneill Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/10/25 07:53:23 jruoho Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -7,4 +7,6 @@
|
||||
KMOD= wmihp
|
||||
SRCS= wmi_hp.c
|
||||
|
||||
WARNS= 4
|
||||
|
||||
.include <bsd.kmodule.mk>
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/10/24 16:31:36 jmcneill Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2010/10/25 07:53:23 jruoho Exp $
|
||||
|
||||
.include "../Makefile.inc"
|
||||
|
||||
@ -7,4 +7,6 @@
|
||||
KMOD= wmimsi
|
||||
SRCS= wmi_msi.c
|
||||
|
||||
WARNS= 4
|
||||
|
||||
.include <bsd.kmodule.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user