freebsd-nq/sys/isa
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
..
isa_common.c On further testing on actual machines with this hardware, we should 2017-12-30 08:16:31 +00:00
isa_common.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
isa_dmareg.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
isa_if.m
isahint.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
isareg.h sys: further adoption of SPDX licensing ID tags. 2017-11-20 19:43:44 +00:00
isavar.h Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
pnp.c Warn when nonPNP ISA devices are attached in GENERIC that they are 2017-12-23 22:57:14 +00:00
pnpparse.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
pnpreg.h spdx: initial adoption of licensing ID tags. 2017-11-18 14:26:50 +00:00
pnpvar.h sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
rtc.h Revert r330780, it was improperly tested and results in taking a spin 2018-03-11 20:13:15 +00:00
syscons_isa.c sys: general adoption of SPDX licensing ID tags. 2017-11-27 15:23:17 +00:00
vga_isa.c Add ISA PNP tables to ISA drivers. Fix a few incidental comments. 2018-01-29 00:22:30 +00:00