opnsense-src/sys
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
..
amd64 Make 'device crypto' lines more consistent. 2018-08-18 20:32:08 +00:00
arm Oops. r338030 didn't eliminate the unused arena argument from all of 2018-08-18 22:35:19 +00:00
arm64 Oops. r338030 didn't eliminate the unused arena argument from all of 2018-08-18 22:35:19 +00:00
bsm
cam Flesh out a comment about what we're doing with read bias and trims. 2018-08-15 00:15:40 +00:00
cddl 9751 Allocation throttling misplacing ditto blocks 2018-08-17 15:17:09 +00:00
compat Regen after r337998. 2018-08-18 06:33:51 +00:00
conf random: Add PowerPC 'darn' instruction entropy source 2018-08-17 03:49:07 +00:00
contrib Bring in libsodium to sys/contrib 2018-08-17 00:23:50 +00:00
crypto Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
ddb add an option for ddb ps command to print process arguments 2018-08-09 11:21:31 +00:00
dev Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
dts Remove Atmel AT91RM9200 and AT91SAM9 support. 2018-07-27 18:28:22 +00:00
fs Fix LORs between vn_start_write() and vn_lock() in nfsrv_copymr(). 2018-08-18 19:14:06 +00:00
gdb amd64: Protect the kernel text, data, and BSS by setting the RW/NX bits 2018-03-06 14:28:37 +00:00
geom OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
gnu Import DTS files from Linux 4.18 2018-08-13 06:40:20 +00:00
i386 Make 'device crypto' lines more consistent. 2018-08-18 20:32:08 +00:00
isa Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
kern res_find: Fix fallback logic 2018-08-18 19:45:56 +00:00
kgssapi OpenCrypto: Convert sessions to opaque handles instead of integers 2018-07-18 00:56:25 +00:00
libkern Sync strlcpy with userland version, again 2018-06-21 17:35:13 +00:00
mips Oops. r338030 didn't eliminate the unused arena argument from all of 2018-08-18 22:35:19 +00:00
modules cxgbe(4): Replace T4_PKT_TIMESTAMP with something slightly less hackish. 2018-08-18 04:23:51 +00:00
net Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
net80211 Fix misspellings of transmitter/transmitted 2018-08-10 20:37:32 +00:00
netgraph The interface name must be sanitized before the search to match the existing 2018-08-15 13:42:22 +00:00
netinet Add the ability to look up the 3b PCP of a VLAN interface. Use it in 2018-08-16 23:46:38 +00:00
netinet6 Properly initialize IP version in IPv6 header. This was missed in r334673. 2018-08-16 09:19:06 +00:00
netipsec Use the new VNET_DEFINE_STATIC macro when we are defining static VNET 2018-07-24 16:35:52 +00:00
netpfil pf: Limit the maximum number of fragments per packet 2018-08-17 15:00:10 +00:00
netsmb Make timespecadd(3) and friends public 2018-07-30 15:46:40 +00:00
nfs Switch RIB and RADIX_NODE_HEAD lock from rwlock(9) to rmlock(9). 2018-06-16 08:26:23 +00:00
nfsclient style: Remove remaining deprecated MALLOC/FREE macros 2018-01-25 22:25:13 +00:00
nfsserver
nlm Use syscall_helper_register() to register syscalls and initialize though 2018-02-10 01:09:22 +00:00
ofed Only NULL check the VNET pointer when VIMAGE is enabled in ibcore. 2018-07-31 11:23:44 +00:00
opencrypto cryptosoft: Reduce generality of supported algorithm composition 2018-08-17 04:40:01 +00:00
powerpc Make 'device crypto' lines more consistent. 2018-08-18 20:32:08 +00:00
riscv Make 'device crypto' lines more consistent. 2018-08-18 20:32:08 +00:00
rpc Set SO_SNDTIMEO in the client side krpc when CLSET_TIMEOUT is done. 2018-07-20 12:03:16 +00:00
security Require that MAC label buffers be able to store a non-empty string. 2018-08-01 03:46:07 +00:00
sparc64 Make 'device crypto' lines more consistent. 2018-08-18 20:32:08 +00:00
sys Remove unused and easy to misuse PNP macro parameter 2018-08-19 00:22:21 +00:00
teken teken: Fix sequences header which was crossing the 80-col boundary 2018-05-29 08:41:44 +00:00
tests epoch_test: fix compile 2018-07-15 00:31:17 +00:00
tools Add dtb overlays support 2018-03-24 21:30:24 +00:00
ufs Replace the TRIM consolodation framework originally added in -r337396 2018-08-18 22:21:59 +00:00
vm Eliminate the unused arena parameter from kmem_alloc_attr(). 2018-08-18 22:07:48 +00:00
x86 Print L1D FLUSH feature. 2018-08-18 12:17:05 +00:00
xdr
xen xen: add missing file from r336474 2018-07-19 10:14:52 +00:00
Makefile