freebsd-dev/sys/dev/drm2/i915
Conrad Meyer faa319436f 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).
2018-08-19 00:22:21 +00:00
..
dvo_ch7xxx.c
dvo_ch7017.c
dvo_ivch.c
dvo_ns2501.c
dvo_sil164.c
dvo_tfp410.c
dvo.h
i915_debug.c
i915_dma.c
i915_drm.h
i915_drv.c Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
i915_drv.h
i915_gem_context.c
i915_gem_evict.c
i915_gem_execbuffer.c
i915_gem_gtt.c vm_wait() rework. 2018-02-20 10:13:13 +00:00
i915_gem_stolen.c
i915_gem_tiling.c
i915_gem.c Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
i915_ioc32.c Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
i915_irq.c
i915_reg.h
i915_suspend.c
intel_acpi.c
intel_bios.c
intel_bios.h
intel_crt.c
intel_ddi.c
intel_display.c Fix build of i915kms with base gcc 2018-06-11 08:11:35 +00:00
intel_dp.c
intel_drv.h
intel_dvo.c
intel_fb.c
intel_hdmi.c
intel_iic.c
intel_lvds.c
intel_modes.c
intel_opregion.c
intel_overlay.c
intel_panel.c
intel_pm.c Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
intel_ringbuffer.c
intel_ringbuffer.h
intel_sdvo_regs.h
intel_sdvo.c
intel_sprite.c
intel_tv.c