opnsense-src/sys/dev/usb
Warner Losh 329e817fcc Reapply, with minor tweaks, r338025, from the original commit:
Remove unused and easy to misuse PNP macro parameter

Inspired by r338025, just remove the element size parameter to the
MODULE_PNP_INFO macro entirely.  The 'table' parameter is now required to
have correct pointer (or array) type.  Since all invocations of the macro
already had this property and the emitted PNP data continues to include the
element size, there is no functional change.

Mostly done with the coccinelle 'spatch' tool:

  $ cat modpnpsize0.cocci
    @normaltables@
    identifier b,c;
    expression a,d,e;
    declarer MODULE_PNP_INFO;
    @@
     MODULE_PNP_INFO(a,b,c,d,
    -sizeof(d[0]),
     e);

    @singletons@
    identifier b,c,d;
    expression a;
    declarer MODULE_PNP_INFO;
    @@
     MODULE_PNP_INFO(a,b,c,&d,
    -sizeof(d),
     1);

  $ rg -l MODULE_PNP_INFO -- sys | \
    xargs spatch --in-place --sp-file modpnpsize0.cocci

(Note that coccinelle invokes diff(1) via a PATH search and expects diff to
tolerate the -B flag, which BSD diff does not.  So I had to link gdiff into
PATH as diff to use spatch.)

Tinderbox'd (-DMAKE_JUST_KERNELS).
Approved by: re (glen)
2018-09-26 17:12:14 +00:00
..
controller Remove Atmel AT91RM9200 and AT91SAM9 support. 2018-07-27 18:28:22 +00:00
gadget sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
input wmt(4): Fix regression introduced in r337289 2018-09-04 19:22:31 +00:00
misc sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
net Add USB ID for rebranded RTL8153 found on NVIDIA Jetson TX1 board. 2018-08-13 07:28:25 +00:00
quirk Add new USB quirk. 2018-02-13 08:13:20 +00:00
serial Add support for SIMCom SIM7600E. 2018-06-05 05:19:04 +00:00
storage Add SPDX identifiers to linux_ptrace.c and cfumass.c. 2018-01-24 17:04:01 +00:00
template Set bDeviceClass properly for composite device (template 8). There should 2018-06-01 09:17:20 +00:00
video Fix device delete child function. 2016-10-17 10:20:38 +00:00
wlan run(4): Support the D-Link DWA-125 rev A3 2018-07-21 14:56:15 +00:00
ufm_ioctl.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
uftdiio.h Return the current ftdi bitbang mode with the UFTDIIOC_GET_BITMODE ioctl. 2015-08-06 19:47:04 +00:00
uled_ioctl.h The USB LED driver for the Dream Cheeky WebMail Notifier. 2014-09-05 11:25:58 +00:00
usb.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_bus.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_busdma.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_busdma.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_cdc.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_controller.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_core.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_core.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_debug.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_debug.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_dev.c Do pass removing some write-only variables from the kernel. 2017-12-25 04:48:39 +00:00
usb_dev.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_device.c Change the default USB template from the current 0 to -1. The reason 2018-05-28 18:34:16 +00:00
usb_device.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_dynamic.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_dynamic.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_endian.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_error.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_freebsd.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_freebsd_loader.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_generic.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_generic.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_handle_request.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_hid.c Raise "Report Count" value limit in HID descriptor parser. 2018-07-21 14:20:17 +00:00
usb_hub.c Revert redundant parts of r329440 after recent devmatch(8) changes. 2018-02-17 12:38:46 +00:00
usb_hub.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_if.m
usb_ioctl.h Add a "multifunction" device side USB template, which provides mass 2018-05-17 19:54:11 +00:00
usb_lookup.c Remove unused bus_autoconf section from usb.ko. 2018-02-17 14:44:03 +00:00
usb_mbuf.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_mbuf.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_msctest.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_msctest.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_parse.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_pci.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_pf.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
usb_pf.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
usb_process.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_process.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_request.c Improve the kernel's USB descriptor reading function. 2018-06-27 12:08:12 +00:00
usb_request.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_transfer.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_transfer.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_util.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usb_util.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usbdevs Add USB ID for rebranded RTL8153 found on NVIDIA Jetson TX1 board. 2018-08-13 07:28:25 +00:00
usbdi.h Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
usbdi_util.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
usbhid.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00