Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Bump WARNS to 4.
details: https://anonhg.NetBSD.org/src/rev/ff2dc5455932
branches: trunk
changeset: 758192:ff2dc5455932
user: jruoho <jruoho%NetBSD.org@localhost>
date: Mon Oct 25 07:48:03 2010 +0000
description:
Bump WARNS to 4.
diffstat:
sys/dev/acpi/acpi_acad.c | 8 ++++----
sys/dev/acpi/acpi_bat.c | 14 ++++++++------
sys/dev/acpi/acpi_button.c | 6 +++---
sys/dev/acpi/acpi_lid.c | 6 +++---
sys/dev/acpi/thinkpad_acpi.c | 6 +++---
sys/dev/acpi/wmi/wmi_dell.c | 8 ++++----
sys/dev/acpi/wmi/wmi_hp.c | 6 +++---
sys/dev/acpi/wmi/wmi_msi.c | 6 +++---
sys/modules/acpiacad/Makefile | 4 +++-
sys/modules/acpibat/Makefile | 4 +++-
sys/modules/acpibut/Makefile | 4 +++-
sys/modules/acpilid/Makefile | 4 +++-
sys/modules/acpiwmi/Makefile | 4 +++-
sys/modules/thinkpad/Makefile | 4 +++-
sys/modules/wmidell/Makefile | 4 +++-
sys/modules/wmihp/Makefile | 4 +++-
sys/modules/wmimsi/Makefile | 4 +++-
17 files changed, 58 insertions(+), 38 deletions(-)
diffs (truncated from 411 to 300 lines):
diff -r b7c74afe1643 -r ff2dc5455932 sys/dev/acpi/acpi_acad.c
--- a/sys/dev/acpi/acpi_acad.c Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/dev/acpi/acpi_acad.c Mon Oct 25 07:48:03 2010 +0000
@@ -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 @@
goto fail;
}
- if (sc->sc_status != status) {
+ if (sc->sc_status != (int)status) {
/*
* If status has changed, send the event:
@@ -315,7 +315,7 @@
.cf_pspec = &acpiparent,
},
- { NULL }
+ { NULL, NULL, 0, 0, NULL, 0, NULL }
};
static int
diff -r b7c74afe1643 -r ff2dc5455932 sys/dev/acpi/acpi_bat.c
--- a/sys/dev/acpi/acpi_bat.c Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/dev/acpi/acpi_bat.c Mon Oct 25 07:48:03 2010 +0000
@@ -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 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 @@
}
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 @@
{
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 @@
{
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);
diff -r b7c74afe1643 -r ff2dc5455932 sys/dev/acpi/acpi_button.c
--- a/sys/dev/acpi/acpi_button.c Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/dev/acpi/acpi_button.c Mon Oct 25 07:48:03 2010 +0000
@@ -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 @@
.cf_pspec = &acpiparent,
},
- { NULL }
+ { NULL, NULL, 0, 0, NULL, 0, NULL }
};
static int
diff -r b7c74afe1643 -r ff2dc5455932 sys/dev/acpi/acpi_lid.c
--- a/sys/dev/acpi/acpi_lid.c Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/dev/acpi/acpi_lid.c Mon Oct 25 07:48:03 2010 +0000
@@ -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 @@
.cf_pspec = &acpiparent,
},
- { NULL }
+ { NULL, NULL, 0, 0, NULL, 0, NULL }
};
static int
diff -r b7c74afe1643 -r ff2dc5455932 sys/dev/acpi/thinkpad_acpi.c
--- a/sys/dev/acpi/thinkpad_acpi.c Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/dev/acpi/thinkpad_acpi.c Mon Oct 25 07:48:03 2010 +0000
@@ -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@localhost>
@@ -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 @@
.cf_pspec = &acpiparent,
},
- { NULL }
+ { NULL, NULL, 0, 0, NULL, 0, NULL }
};
static int
diff -r b7c74afe1643 -r ff2dc5455932 sys/dev/acpi/wmi/wmi_dell.c
--- a/sys/dev/acpi/wmi/wmi_dell.c Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/dev/acpi/wmi/wmi_dell.c Mon Oct 25 07:48:03 2010 +0000
@@ -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 @@
{
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 @@
.cf_pspec = &wmiparent,
},
- { NULL }
+ { NULL, NULL, 0, 0, NULL, 0, NULL }
};
static int
diff -r b7c74afe1643 -r ff2dc5455932 sys/dev/acpi/wmi/wmi_hp.c
--- a/sys/dev/acpi/wmi/wmi_hp.c Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/dev/acpi/wmi/wmi_hp.c Mon Oct 25 07:48:03 2010 +0000
@@ -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 @@
.cf_pspec = &wmiparent,
},
- { NULL }
+ { NULL, NULL, 0, 0, NULL, 0, NULL }
};
static int
diff -r b7c74afe1643 -r ff2dc5455932 sys/dev/acpi/wmi/wmi_msi.c
--- a/sys/dev/acpi/wmi/wmi_msi.c Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/dev/acpi/wmi/wmi_msi.c Mon Oct 25 07:48:03 2010 +0000
@@ -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 @@
.cf_pspec = &wmiparent,
},
- { NULL }
+ { NULL, NULL, 0, 0, NULL, 0, NULL }
};
static int
diff -r b7c74afe1643 -r ff2dc5455932 sys/modules/acpiacad/Makefile
--- a/sys/modules/acpiacad/Makefile Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/modules/acpiacad/Makefile Mon Oct 25 07:48:03 2010 +0000
@@ -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>
diff -r b7c74afe1643 -r ff2dc5455932 sys/modules/acpibat/Makefile
--- a/sys/modules/acpibat/Makefile Mon Oct 25 07:37:11 2010 +0000
+++ b/sys/modules/acpibat/Makefile Mon Oct 25 07:48:03 2010 +0000
@@ -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 @@
IOCONF= ACPIBAT.ioconf
SRCS= acpi_bat.c
+WARNS= 4
+
.include <bsd.kmodule.mk>
diff -r b7c74afe1643 -r ff2dc5455932 sys/modules/acpibut/Makefile
Home |
Main Index |
Thread Index |
Old Index