Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/allwinner sprinkle __diagused to fix "no option...
details: https://anonhg.NetBSD.org/src/rev/f0033a53d8be
branches: trunk
changeset: 336737:f0033a53d8be
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sun Mar 15 13:15:26 2015 +0000
description:
sprinkle __diagused to fix "no options DIAGNOSTIC" build
diffstat:
sys/arch/arm/allwinner/awin_eth.c | 8 +++-----
sys/arch/arm/allwinner/awin_gige.c | 8 +++-----
sys/arch/arm/allwinner/awin_gpio.c | 6 +++---
sys/arch/arm/allwinner/awin_usb.c | 6 +++---
4 files changed, 12 insertions(+), 16 deletions(-)
diffs (99 lines):
diff -r 3d9f11bec0fb -r f0033a53d8be sys/arch/arm/allwinner/awin_eth.c
--- a/sys/arch/arm/allwinner/awin_eth.c Sun Mar 15 10:38:58 2015 +0000
+++ b/sys/arch/arm/allwinner/awin_eth.c Sun Mar 15 13:15:26 2015 +0000
@@ -31,7 +31,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_eth.c,v 1.7 2014/09/06 19:00:50 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_eth.c,v 1.8 2015/03/15 13:15:26 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -141,10 +141,8 @@
static int
awin_eth_match(device_t parent, cfdata_t cf, void *aux)
{
- struct awinio_attach_args * const aio = aux;
-#ifdef DIAGNOSTIC
- const struct awin_locators * const loc = &aio->aio_loc;
-#endif
+ struct awinio_attach_args * const aio __diagused = aux;
+ const struct awin_locators * const loc __diagused = &aio->aio_loc;
const struct awin_gpio_pinset * const pinset =
&awin_eth_pinsets[cf->cf_flags & 1];
diff -r 3d9f11bec0fb -r f0033a53d8be sys/arch/arm/allwinner/awin_gige.c
--- a/sys/arch/arm/allwinner/awin_gige.c Sun Mar 15 10:38:58 2015 +0000
+++ b/sys/arch/arm/allwinner/awin_gige.c Sun Mar 15 13:15:26 2015 +0000
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.21 2014/12/07 00:37:52 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gige.c,v 1.22 2015/03/15 13:15:26 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -90,13 +90,11 @@
static int
awin_gige_match(device_t parent, cfdata_t cf, void *aux)
{
- struct awinio_attach_args * const aio = aux;
const struct awin_gpio_pinset *pinset =
awin_chip_id() == AWIN_CHIP_ID_A31 ?
&awin_gige_gpio_pinset_a31 : &awin_gige_gpio_pinset;
-#ifdef DIAGNOSTIC
- const struct awin_locators * const loc = &aio->aio_loc;
-#endif
+ struct awinio_attach_args * const aio __diagused = aux;
+ const struct awin_locators * const loc __diagused = &aio->aio_loc;
if (cf->cf_flags & 1)
return 0;
diff -r 3d9f11bec0fb -r f0033a53d8be sys/arch/arm/allwinner/awin_gpio.c
--- a/sys/arch/arm/allwinner/awin_gpio.c Sun Mar 15 10:38:58 2015 +0000
+++ b/sys/arch/arm/allwinner/awin_gpio.c Sun Mar 15 13:15:26 2015 +0000
@@ -35,7 +35,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.16 2014/12/07 18:32:13 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_gpio.c,v 1.17 2015/03/15 13:15:26 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -254,8 +254,8 @@
static int
awin_gpio_match(device_t parent, cfdata_t cf, void *aux)
{
- struct awinio_attach_args * const aio = aux;
- const struct awin_locators * const loc = &aio->aio_loc;
+ struct awinio_attach_args * const aio __diagused = aux;
+ const struct awin_locators * const loc __diagused = &aio->aio_loc;
KASSERT(!strcmp(cf->cf_name, loc->loc_name));
KASSERT(loc->loc_port == AWINIOCF_PORT_DEFAULT);
diff -r 3d9f11bec0fb -r f0033a53d8be sys/arch/arm/allwinner/awin_usb.c
--- a/sys/arch/arm/allwinner/awin_usb.c Sun Mar 15 10:38:58 2015 +0000
+++ b/sys/arch/arm/allwinner/awin_usb.c Sun Mar 15 13:15:26 2015 +0000
@@ -34,7 +34,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: awin_usb.c,v 1.19 2014/12/07 16:20:33 jmcneill Exp $");
+__KERNEL_RCSID(1, "$NetBSD: awin_usb.c,v 1.20 2015/03/15 13:15:26 jmcneill Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -403,8 +403,8 @@
int
awinusb_match(device_t parent, cfdata_t cf, void *aux)
{
- struct awinio_attach_args * const aio = aux;
- const struct awin_locators * const loc = &aio->aio_loc;
+ struct awinio_attach_args * const aio __diagused = aux;
+ const struct awin_locators * const loc __diagused = &aio->aio_loc;
KASSERT(loc->loc_port != AWINIOCF_PORT_DEFAULT);
KASSERT(!strcmp(cf->cf_name, loc->loc_name));
Home |
Main Index |
Thread Index |
Old Index