opnsense-src/sys/dev/drm2
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
..
i915 Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
radeon Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
ttm vm_wait() rework. 2018-02-20 10:13:13 +00:00
ati_pcigart.c
drm.h
drm_agpsupport.c Really revert 312923 this time 2017-01-28 16:40:51 +00:00
drm_atomic.h drm/i915: Update to match Linux 3.8.13 2016-03-08 20:33:02 +00:00
drm_auth.c
drm_buffer.c
drm_buffer.h
drm_bufs.c Revert crap accidentally committed 2017-01-28 16:31:23 +00:00
drm_context.c
drm_core.h
drm_crtc.c drm: Revert the part of r288653 about M_WAITOK vs M_NOWAIT 2016-01-13 20:35:02 +00:00
drm_crtc.h
drm_crtc_helper.c
drm_crtc_helper.h
drm_dma.c Revert crap accidentally committed 2017-01-28 16:31:23 +00:00
drm_dp_helper.c
drm_dp_helper.h
drm_dp_iic_helper.c Revert bus_get_cpus() for now. 2016-05-03 01:17:40 +00:00
drm_drv.c Really revert 312923 this time 2017-01-28 16:40:51 +00:00
drm_edid.c drm2(4): Fix double-free in low-memory error path 2016-04-20 03:45:45 +00:00
drm_edid.h
drm_edid_modes.h
drm_fb_helper.c Correct pseudo misspelling in sys/ comments 2018-02-23 18:15:50 +00:00
drm_fb_helper.h
drm_fixed.h
drm_fops.c drm2: a few minor fixes after r280183 2015-10-04 07:45:36 +00:00
drm_fourcc.h
drm_gem.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
drm_gem_names.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
drm_gem_names.h sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
drm_global.c
drm_global.h
drm_hashtab.c
drm_hashtab.h
drm_ioc32.c Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00
drm_ioctl.c
drm_irq.c
drm_linux_list.h drm/i915: Update to match Linux 3.8.13 2016-03-08 20:33:02 +00:00
drm_linux_list_sort.c sys/dev: further adoption of SPDX licensing ID tags. 2017-11-27 14:52:40 +00:00
drm_lock.c Hide an unused in FreeBSD function behind #ifdef linux to get rid of 2015-09-22 15:32:27 +00:00
drm_mem_util.h drm2: Basic use of mallocarray(9). 2018-01-22 15:55:51 +00:00
drm_memory.c Allow DRM2 code to be built on platforms without AGP. 2016-11-13 13:31:23 +00:00
drm_mm.c
drm_mm.h
drm_mode.h
drm_modes.c
drm_os_freebsd.c Really revert 312923 this time 2017-01-28 16:40:51 +00:00
drm_os_freebsd.h Really revert 312923 this time 2017-01-28 16:40:51 +00:00
drm_pci.c drm: Revert the part of r288653 about M_WAITOK vs M_NOWAIT 2016-01-13 20:35:02 +00:00
drm_pciids.h drm2: Add some missing PCIIDs for some Haswell systems 2017-04-13 01:56:15 +00:00
drm_platform.c Import drm_patform.c, an implementation of non-PCI based attachment 2016-12-26 14:28:23 +00:00
drm_sarea.h
drm_scatter.c Eliminate the unused arena parameter from kmem_alloc_attr(). 2018-08-18 22:07:48 +00:00
drm_stub.c Really revert 312923 this time 2017-01-28 16:40:51 +00:00
drm_sysctl.c
drm_vm.c sys/dev: minor spelling fixes. 2016-05-03 03:41:25 +00:00
drmP.h Move most of the contents of opt_compat.h to opt_global.h. 2018-04-06 17:35:35 +00:00