freebsd-dev/sys/dev/ixgbe
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
..
if_bypass.c ixgbe(4): Convert driver to use iflib 2017-12-20 18:15:06 +00:00
if_fdir.c ixgbe(4): Convert driver to use iflib 2017-12-20 18:15:06 +00:00
if_ix.c Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
if_ixv.c Reapply, with minor tweaks, r338025, from the original commit: 2018-09-26 17:12:14 +00:00
if_sriov.c ixgbe(4): Convert driver to use iflib 2017-12-20 18:15:06 +00:00
ix_txrx.c ix(4), ixv(4): VLAN tag stripping fixes for Amazon EC2 Enhanced Networking 2018-09-11 18:33:43 +00:00
ixgbe_82598.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_82598.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_82599.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_82599.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_api.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_api.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_bypass.h ixgbe(4): Update HEAD (p3) to 3.2.12-k 2017-07-05 17:27:03 +00:00
ixgbe_common.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_common.h ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_dcb_82598.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_dcb_82598.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_dcb_82599.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_dcb_82599.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_dcb.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_dcb.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_fdir.h ixgbe(4): Convert driver to use iflib 2017-12-20 18:15:06 +00:00
ixgbe_features.h ixgbe(4): Update HEAD (p3) to 3.2.12-k 2017-07-05 17:27:03 +00:00
ixgbe_mbx.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_mbx.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_osdep.c ixgbe(4): Convert driver to use iflib 2017-12-20 18:15:06 +00:00
ixgbe_osdep.h ixgbe(4): Convert driver to use iflib 2017-12-20 18:15:06 +00:00
ixgbe_phy.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_phy.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_rss.h ixgbe: Remove never defined UDP_IPV4_EX 2017-10-11 05:55:52 +00:00
ixgbe_sriov.h ixgbe(4): Convert driver to use iflib 2017-12-20 18:15:06 +00:00
ixgbe_type.h ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_vf.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_vf.h ixgbe(4): Convert driver to use iflib 2017-12-20 18:15:06 +00:00
ixgbe_x540.c ixgbe(4): Update shared code, add support for X552 1G, fix bug 2018-03-19 20:55:05 +00:00
ixgbe_x540.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-20 19:36:21 +00:00
ixgbe_x550.c netmap and iflib drivers, silence unused var warnings 2018-05-19 05:57:26 +00:00
ixgbe_x550.h ixgbe(4): Update HEAD (p3) to 3.2.12-k 2017-07-05 17:27:03 +00:00
ixgbe.h Assorted TSO fixes for em(4)/iflib(9) and dead code removal: 2018-07-15 19:04:23 +00:00