Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/thorpej-cfargs]: src/sys/dev/usb Audit CFARG_IATTR in config_found() cal...
details: https://anonhg.NetBSD.org/src/rev/6f78137e1d88
branches: thorpej-cfargs
changeset: 953858:6f78137e1d88
user: thorpej <thorpej%NetBSD.org@localhost>
date: Mon Mar 22 16:23:38 2021 +0000
description:
Audit CFARG_IATTR in config_found() calls, and remove it in situations
where the interface attribute is not ambiguous.
diffstat:
sys/arch/acorn32/mainbus/pioc.c | 9 ++-------
sys/arch/acorn32/podulebus/podulebus.c | 6 ++----
sys/arch/algor/dev/mainbus.c | 5 ++---
sys/arch/alpha/mcbus/mcbus.c | 7 ++-----
sys/arch/alpha/sableio/sableio.c | 5 ++---
sys/arch/alpha/tlsb/gbus.c | 5 ++---
sys/arch/alpha/tlsb/tlsb.c | 6 ++----
sys/arch/arm/at91/at91bus.c | 5 ++---
sys/arch/arm/clps711x/clpssoc.c | 5 ++---
sys/arch/arm/ep93xx/epsoc.c | 6 ++----
sys/arch/arm/marvell/mvsoc.c | 5 ++---
sys/arch/arm/nxp/imx6_usb.c | 5 ++---
sys/arch/dreamcast/dev/maple/maple.c | 5 ++---
sys/arch/emips/ebus/ebus.c | 5 ++---
sys/arch/epoc32/windermere/windermere.c | 5 ++---
sys/arch/evbmips/alchemy/obio.c | 5 ++---
sys/arch/evbmips/malta/dev/mainbus.c | 5 ++---
sys/arch/evbmips/sbmips/zbbus.c | 5 ++---
sys/arch/evbppc/mpc85xx/autoconf.c | 8 +++-----
sys/arch/evbppc/pmppc/mainbus.c | 7 ++-----
sys/arch/evbppc/walnut/dev/pbus.c | 5 ++---
sys/arch/hp300/dev/dio.c | 5 ++---
sys/arch/hp300/dev/frodo.c | 5 ++---
sys/arch/hpcsh/dev/hd64461/hd64461pcmcia.c | 5 ++---
sys/arch/hpcsh/dev/hd64465/hd64465pcmcia.c | 5 ++---
sys/arch/hppa/dev/astro.c | 3 +--
sys/arch/hppa/dev/gecko.c | 1 -
sys/arch/hppa/dev/phantomas.c | 3 +--
sys/arch/hppa/dev/uturn.c | 3 +--
sys/arch/hppa/gsc/gscbus.c | 5 ++---
sys/arch/hppa/hppa/mainbus.c | 6 ++----
sys/arch/i386/pnpbios/pnpbios.c | 5 ++---
sys/arch/mips/alchemy/aubus.c | 5 ++---
sys/arch/mips/alchemy/dev/aupsc.c | 5 ++---
sys/arch/mips/atheros/arbus.c | 5 ++---
sys/arch/mips/cavium/octeon_bootbus.c | 5 ++---
sys/arch/mips/cavium/octeon_iobus.c | 5 ++---
sys/arch/mips/sibyte/dev/sbobio.c | 5 ++---
sys/arch/mips/sibyte/dev/sbscd.c | 5 ++---
sys/arch/mips/sibyte/dev/sbsmbus.c | 5 ++---
sys/arch/pmax/ibus/ibus.c | 5 ++---
sys/arch/powerpc/booke/dev/pq3duart.c | 8 +++-----
sys/arch/powerpc/ibm4xx/dev/exb.c | 5 ++---
sys/arch/powerpc/ibm4xx/dev/opb.c | 5 ++---
sys/arch/sbmips/sbmips/zbbus.c | 5 ++---
sys/arch/sgimips/gio/gio.c | 6 ++----
sys/arch/sgimips/hpc/hpc.c | 6 ++----
sys/arch/sparc/dev/bootbus.c | 5 ++---
sys/arch/sparc64/dev/sab.c | 5 ++---
sys/arch/sun3/sun3/obio.c | 5 ++---
sys/arch/sun3/sun3x/obio.c | 5 ++---
sys/dev/ata/ata_raid.c | 5 ++---
sys/dev/cardbus/cardbus.c | 5 ++---
sys/dev/eisa/eisa.c | 5 ++---
sys/dev/hdaudio/hdaudio.c | 5 ++---
sys/dev/hil/hil.c | 3 +--
sys/dev/i2c/i2c.c | 5 ++---
sys/dev/i2c/ihidev.c | 6 ++----
sys/dev/i2o/iop.c | 6 ++----
sys/dev/ic/aac.c | 5 ++---
sys/dev/ic/cac.c | 6 +++---
sys/dev/ic/i82365.c | 5 ++---
sys/dev/ic/icp.c | 7 ++-----
sys/dev/ic/mfi.c | 6 +++---
sys/dev/ic/mlx.c | 5 ++---
sys/dev/ic/tcic2.c | 5 ++---
sys/dev/ieee1394/firewire.c | 5 ++---
sys/dev/isa/isa.c | 5 ++---
sys/dev/isapnp/isapnp.c | 5 ++---
sys/dev/marvell/gt.c | 5 ++---
sys/dev/marvell/if_gfe.c | 5 ++---
sys/dev/marvell/if_mvgbe.c | 5 ++---
sys/dev/mca/edc_mca.c | 5 ++---
sys/dev/mca/mca.c | 5 ++---
sys/dev/pci/amr.c | 6 +++---
sys/dev/pci/cxgb/cxgb_main.c | 3 +--
sys/dev/pci/mfii.c | 6 +++---
sys/dev/pci/mpii.c | 6 +++---
sys/dev/pci/pci.c | 5 ++---
sys/dev/pci/puc.c | 5 ++---
sys/dev/pci/twa.c | 6 +++---
sys/dev/pci/twe.c | 5 ++---
sys/dev/pcmcia/pcmcia.c | 8 ++++----
sys/dev/pcmcia/pcmcom.c | 5 ++---
sys/dev/spi/spi.c | 5 ++---
sys/dev/tc/ioasic_subr.c | 5 ++---
sys/dev/tc/tc.c | 6 ++----
sys/dev/tc/tcds.c | 5 ++---
sys/dev/tc/zs_ioasic.c | 5 ++---
sys/dev/usb/u3g.c | 5 ++---
sys/dev/usb/uark.c | 5 ++---
sys/dev/usb/ubsa.c | 5 ++---
sys/dev/usb/uchcom.c | 5 ++---
sys/dev/usb/uftdi.c | 5 ++---
sys/dev/usb/ugensa.c | 5 ++---
sys/dev/usb/uhidev.c | 5 ++---
sys/dev/usb/uhmodem.c | 5 ++---
sys/dev/usb/uipaq.c | 5 ++---
sys/dev/usb/umcs.c | 5 ++---
sys/dev/usb/umct.c | 5 ++---
sys/dev/usb/umodem_common.c | 5 ++---
sys/dev/usb/uplcom.c | 5 ++---
sys/dev/usb/uslsa.c | 5 ++---
sys/dev/usb/uvisor.c | 6 ++----
sys/dev/usb/uvscom.c | 5 ++---
105 files changed, 213 insertions(+), 333 deletions(-)
diffs (truncated from 2851 to 300 lines):
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/acorn32/mainbus/pioc.c
--- a/sys/arch/acorn32/mainbus/pioc.c Mon Mar 22 14:50:30 2021 +0000
+++ b/sys/arch/acorn32/mainbus/pioc.c Mon Mar 22 16:23:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pioc.c,v 1.18.52.3 2021/03/22 02:00:54 thorpej Exp $ */
+/* $NetBSD: pioc.c,v 1.18.52.4 2021/03/22 16:23:38 thorpej Exp $ */
/*
* Copyright (c) 1997 Mark Brinicombe.
@@ -41,7 +41,7 @@
/*#define PIOC_DEBUG*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pioc.c,v 1.18.52.3 2021/03/22 02:00:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pioc.c,v 1.18.52.4 2021/03/22 16:23:38 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -384,7 +384,6 @@
pa.pa_irq = -1;
config_found(self, &pa, piocprint,
CFARG_SUBMATCH, piocsubmatch,
- CFARG_IATTR, "pioc",
CFARG_EOL);
}
@@ -405,7 +404,6 @@
pa.pa_irq = -1;
config_found(self, &pa, piocprint,
CFARG_SUBMATCH, piocsubmatch,
- CFARG_IATTR, "pioc",
CFARG_EOL);
}
@@ -443,7 +441,6 @@
pa.pa_irq = -1;
config_found(self, &pa, piocprint,
CFARG_SUBMATCH, piocsubmatch,
- CFARG_IATTR, "pioc",
CFARG_EOL);
}
@@ -470,7 +467,6 @@
pa.pa_irq = -1;
config_found(self, &pa, piocprint,
CFARG_SUBMATCH, piocsubmatch,
- CFARG_IATTR, "pioc",
CFARG_EOL);
}
@@ -498,7 +494,6 @@
pa.pa_irq = -1;
config_found(self, &pa, piocprint,
CFARG_SUBMATCH, piocsubmatch,
- CFARG_IATTR, "pioc",
CFARG_EOL);
}
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/acorn32/podulebus/podulebus.c
--- a/sys/arch/acorn32/podulebus/podulebus.c Mon Mar 22 14:50:30 2021 +0000
+++ b/sys/arch/acorn32/podulebus/podulebus.c Mon Mar 22 16:23:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: podulebus.c,v 1.30.2.1 2021/03/22 02:00:54 thorpej Exp $ */
+/* $NetBSD: podulebus.c,v 1.30.2.2 2021/03/22 16:23:38 thorpej Exp $ */
/*
* Copyright (c) 1994-1996 Mark Brinicombe.
@@ -43,7 +43,7 @@
#include <sys/param.h>
-__KERNEL_RCSID(0, "$NetBSD: podulebus.c,v 1.30.2.1 2021/03/22 02:00:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: podulebus.c,v 1.30.2.2 2021/03/22 16:23:38 thorpej Exp $");
#include <sys/systm.h>
#include <sys/kernel.h>
@@ -494,7 +494,6 @@
pa.pa_iot = &podulebus_bs_tag;
config_found(self, &pa, podulebusprint,
CFARG_SUBMATCH, podulebussubmatch,
- CFARG_IATTR, "podulebus",
CFARG_EOL);
continue;
}
@@ -511,7 +510,6 @@
pa.pa_iot = &podulebus_bs_tag;
config_found(self, &pa, podulebusprint,
CFARG_SUBMATCH, podulebussubmatch,
- CFARG_IATTR, "podulebus",
CFARG_EOL);
}
}
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/algor/dev/mainbus.c
--- a/sys/arch/algor/dev/mainbus.c Mon Mar 22 14:50:30 2021 +0000
+++ b/sys/arch/algor/dev/mainbus.c Mon Mar 22 16:23:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mainbus.c,v 1.28.4.1 2021/03/22 02:00:54 thorpej Exp $ */
+/* $NetBSD: mainbus.c,v 1.28.4.2 2021/03/22 16:23:38 thorpej Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.28.4.1 2021/03/22 02:00:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mainbus.c,v 1.28.4.2 2021/03/22 16:23:38 thorpej Exp $");
#include "opt_algor_p4032.h"
#include "opt_algor_p5064.h"
@@ -222,7 +222,6 @@
ma.ma_irq = md->md_irq;
config_found(self, &ma, mainbus_print,
CFARG_SUBMATCH, mainbus_submatch,
- CFARG_IATTR, "mainbus",
CFARG_EOL);
}
}
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/alpha/mcbus/mcbus.c
--- a/sys/arch/alpha/mcbus/mcbus.c Mon Mar 22 14:50:30 2021 +0000
+++ b/sys/arch/alpha/mcbus/mcbus.c Mon Mar 22 16:23:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mcbus.c,v 1.22.62.1 2021/03/22 02:00:54 thorpej Exp $ */
+/* $NetBSD: mcbus.c,v 1.22.62.2 2021/03/22 16:23:38 thorpej Exp $ */
/*
* Copyright (c) 1998 by Matthew Jacob
@@ -37,7 +37,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: mcbus.c,v 1.22.62.1 2021/03/22 02:00:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mcbus.c,v 1.22.62.2 2021/03/22 16:23:38 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -148,7 +148,6 @@
locs[MCBUSCF_MID] = 1;
config_found(self, &ta, mcbusprint,
CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_IATTR, "mcbus",
CFARG_LOCATORS, locs,
CFARG_EOL);
@@ -169,7 +168,6 @@
if (MCPCIA_EXISTS(ta.ma_mid, ta.ma_gid))
config_found(self, &ta, mcbusprint,
CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_IATTR, "mcbus",
CFARG_LOCATORS, locs,
CFARG_EOL);
}
@@ -200,7 +198,6 @@
locs[MCBUSCF_MID] = mid;
config_found(self, &ta, mcbusprint,
CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_IATTR, "mcbus",
CFARG_LOCATORS, locs,
CFARG_EOL);
}
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/alpha/sableio/sableio.c
--- a/sys/arch/alpha/sableio/sableio.c Mon Mar 22 14:50:30 2021 +0000
+++ b/sys/arch/alpha/sableio/sableio.c Mon Mar 22 16:23:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sableio.c,v 1.13.68.1 2021/03/22 02:00:54 thorpej Exp $ */
+/* $NetBSD: sableio.c,v 1.13.68.2 2021/03/22 16:23:39 thorpej Exp $ */
/*-
* Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -48,7 +48,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: sableio.c,v 1.13.68.1 2021/03/22 02:00:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sableio.c,v 1.13.68.2 2021/03/22 16:23:39 thorpej Exp $");
#include "isadma.h"
@@ -171,7 +171,6 @@
config_found(self, &sa, sableio_print,
CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_IATTR, "sableio",
CFARG_LOCATORS, locs,
CFARG_EOL);
}
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/alpha/tlsb/gbus.c
--- a/sys/arch/alpha/tlsb/gbus.c Mon Mar 22 14:50:30 2021 +0000
+++ b/sys/arch/alpha/tlsb/gbus.c Mon Mar 22 16:23:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gbus.c,v 1.22.68.1 2021/03/22 02:00:54 thorpej Exp $ */
+/* $NetBSD: gbus.c,v 1.22.68.2 2021/03/22 16:23:39 thorpej Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
@@ -37,7 +37,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: gbus.c,v 1.22.68.1 2021/03/22 02:00:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: gbus.c,v 1.22.68.2 2021/03/22 16:23:39 thorpej Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -126,7 +126,6 @@
locs[GBUSCF_OFFSET] = gaa.ga_offset;
config_found(self, &gaa, gbusprint,
CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_IATTR, "gbus",
CFARG_LOCATORS, locs,
CFARG_EOL);
}
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/alpha/tlsb/tlsb.c
--- a/sys/arch/alpha/tlsb/tlsb.c Mon Mar 22 14:50:30 2021 +0000
+++ b/sys/arch/alpha/tlsb/tlsb.c Mon Mar 22 16:23:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tlsb.c,v 1.38.44.1 2021/03/22 02:00:54 thorpej Exp $ */
+/* $NetBSD: tlsb.c,v 1.38.44.2 2021/03/22 16:23:39 thorpej Exp $ */
/*
* Copyright (c) 1997 by Matthew Jacob
* NASA AMES Research Center.
@@ -39,7 +39,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.38.44.1 2021/03/22 02:00:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tlsb.c,v 1.38.44.2 2021/03/22 16:23:39 thorpej Exp $");
#include "opt_multiprocessor.h"
@@ -182,7 +182,6 @@
config_found(self, &ta, tlsbprint,
CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_IATTR, "tlsb",
CFARG_LOCATORS, locs,
CFARG_EOL);
}
@@ -231,7 +230,6 @@
config_found(self, &ta, tlsbprint,
CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_IATTR, "tlsb",
CFARG_LOCATORS, locs,
CFARG_EOL);
}
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/arm/at91/at91bus.c
--- a/sys/arch/arm/at91/at91bus.c Mon Mar 22 14:50:30 2021 +0000
+++ b/sys/arch/arm/at91/at91bus.c Mon Mar 22 16:23:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: at91bus.c,v 1.27.4.3 2021/03/22 02:00:54 thorpej Exp $ */
+/* $NetBSD: at91bus.c,v 1.27.4.4 2021/03/22 16:23:39 thorpej Exp $ */
/*
* Copyright (c) 2007 Embedtronics Oy
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: at91bus.c,v 1.27.4.3 2021/03/22 02:00:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: at91bus.c,v 1.27.4.4 2021/03/22 16:23:39 thorpej Exp $");
#include "opt_arm_debug.h"
#include "opt_console.h"
@@ -582,7 +582,6 @@
config_found(self, &sa, at91bus_print,
CFARG_SUBMATCH, at91bus_submatch,
- CFARG_IATTR, "at91bus",
CFARG_LOCATORS, locs,
CFARG_EOL);
}
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/arm/clps711x/clpssoc.c
--- a/sys/arch/arm/clps711x/clpssoc.c Mon Mar 22 14:50:30 2021 +0000
+++ b/sys/arch/arm/clps711x/clpssoc.c Mon Mar 22 16:23:38 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: clpssoc.c,v 1.1.54.1 2021/03/22 02:00:55 thorpej Exp $ */
+/* $NetBSD: clpssoc.c,v 1.1.54.2 2021/03/22 16:23:39 thorpej Exp $ */
/*
* Copyright (c) 2013 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: clpssoc.c,v 1.1.54.1 2021/03/22 02:00:55 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: clpssoc.c,v 1.1.54.2 2021/03/22 16:23:39 thorpej Exp $");
#include "opt_com.h"
@@ -147,7 +147,6 @@
config_found(self, &aa, clpssoc_print,
CFARG_SUBMATCH, clpssoc_submatch,
- CFARG_IATTR, "clpssoc",
CFARG_EOL);
}
}
diff -r 2b07d644b863 -r 6f78137e1d88 sys/arch/arm/ep93xx/epsoc.c
--- a/sys/arch/arm/ep93xx/epsoc.c Mon Mar 22 14:50:30 2021 +0000
Home |
Main Index |
Thread Index |
Old Index