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
..
2018-08-19 00:22:21 +00:00
2018-08-19 00:22:21 +00:00
2018-06-17 20:44:20 +00:00
2018-07-30 15:46:40 +00:00
2017-11-27 14:52:40 +00:00
2018-08-19 00:22:21 +00:00
2018-01-29 04:04:52 +00:00
2018-08-19 00:22:21 +00:00
2018-08-19 00:22:21 +00:00
2018-08-18 22:35:19 +00:00
2018-01-29 00:14:46 +00:00
2018-08-19 00:22:21 +00:00
2018-01-29 00:14:46 +00:00
2018-02-23 18:15:50 +00:00
2018-05-18 20:13:34 +00:00
2018-08-19 00:22:21 +00:00
2018-08-19 00:22:21 +00:00
2018-05-18 20:13:34 +00:00
2018-08-18 22:07:48 +00:00
2018-05-05 05:22:11 +00:00
2018-07-07 15:55:52 +00:00
2018-08-19 00:22:21 +00:00
2018-08-19 00:22:21 +00:00
2018-08-19 00:22:21 +00:00
2018-08-19 00:22:21 +00:00
2017-11-27 14:52:40 +00:00
2018-05-24 17:06:00 +00:00
2018-07-03 16:17:59 +00:00
2018-08-10 13:38:23 +00:00
2018-08-13 19:05:53 +00:00
2017-11-27 14:52:40 +00:00
2017-12-25 04:48:39 +00:00
2018-08-19 00:22:21 +00:00
2018-01-21 15:42:36 +00:00
2018-08-19 00:22:21 +00:00
2018-08-19 00:22:21 +00:00
2018-05-19 18:15:41 +00:00
2018-06-24 19:01:01 +00:00
2018-05-18 20:13:34 +00:00
2018-07-15 19:04:23 +00:00
2018-01-29 00:14:46 +00:00
2017-11-27 14:52:40 +00:00
2018-08-19 00:22:21 +00:00
2018-08-19 00:22:21 +00:00
2018-07-17 23:56:13 +00:00
2017-12-27 03:23:21 +00:00
2018-03-20 22:01:18 +00:00
2018-08-19 00:22:21 +00:00
2018-07-18 00:56:25 +00:00
2017-11-27 14:52:40 +00:00
2018-07-17 23:23:45 +00:00
2018-08-19 00:22:21 +00:00
2017-11-27 14:52:40 +00:00
2018-06-15 02:28:36 +00:00
2018-08-13 17:13:09 +00:00
2018-07-19 11:31:49 +00:00
2018-05-18 20:13:34 +00:00
2018-08-10 20:37:32 +00:00
2018-05-18 20:13:34 +00:00
2018-08-18 04:23:51 +00:00
2018-04-06 17:35:35 +00:00
2017-08-08 13:27:32 +00:00
2018-08-19 00:22:21 +00:00
2018-04-13 20:30:49 +00:00
2018-05-18 20:13:34 +00:00
2018-04-09 22:06:16 +00:00
2017-11-20 19:36:21 +00:00
2018-01-29 00:14:46 +00:00
2018-08-18 22:07:48 +00:00
2018-08-19 00:22:21 +00:00
2018-05-18 20:13:34 +00:00
2018-08-13 20:29:39 +00:00
2018-08-19 00:22:21 +00:00
2018-08-04 21:41:10 +00:00
2018-08-19 00:22:21 +00:00
2017-12-30 19:27:22 +00:00
2018-01-21 15:42:36 +00:00
2018-08-19 00:22:21 +00:00
2018-04-10 08:35:43 +00:00
2018-08-13 19:05:53 +00:00
2018-05-18 20:13:34 +00:00
2018-05-01 16:29:22 +00:00
2018-08-05 06:15:35 +00:00
2018-01-21 15:42:36 +00:00
2017-12-23 06:49:27 +00:00
2018-07-19 11:41:53 +00:00
2018-05-18 20:13:34 +00:00
2018-05-18 20:13:34 +00:00
2018-08-03 19:24:04 +00:00
2018-07-27 10:40:48 +00:00
2018-07-29 16:55:28 +00:00
2018-08-19 00:22:21 +00:00
2018-08-19 00:22:21 +00:00
2017-11-27 14:52:40 +00:00
2018-07-18 03:32:28 +00:00
2018-04-09 22:06:16 +00:00
2017-11-27 14:52:40 +00:00
2018-07-18 00:56:25 +00:00
2018-05-18 20:13:34 +00:00
2018-01-02 18:29:44 +00:00
2017-11-27 14:52:40 +00:00
2017-11-27 14:52:40 +00:00
2018-01-02 18:31:32 +00:00
2018-01-02 18:31:32 +00:00
2018-08-14 05:18:43 +00:00
2018-08-04 14:57:23 +00:00
2017-11-27 14:52:40 +00:00
2018-08-13 18:53:14 +00:00
2017-11-27 14:52:40 +00:00
2017-11-27 14:52:40 +00:00
2018-05-18 20:13:34 +00:00
2018-08-13 23:53:11 +00:00
2017-11-27 14:52:40 +00:00
2018-03-03 01:53:51 +00:00
2018-08-19 00:22:21 +00:00
2017-11-27 14:52:40 +00:00
2018-08-19 00:22:21 +00:00
2018-08-16 15:59:02 +00:00
2017-11-27 14:52:40 +00:00
2018-08-19 00:22:21 +00:00
2018-02-23 20:01:42 +00:00
2018-03-14 18:27:06 +00:00
2017-11-27 14:52:40 +00:00
2017-11-23 14:28:14 +00:00
2018-07-30 15:46:40 +00:00
2018-03-02 19:50:41 +00:00
2018-03-30 18:50:13 +00:00
2018-03-28 07:59:16 +00:00
2018-06-30 04:30:08 +00:00
2018-08-19 00:22:21 +00:00
2018-07-15 19:04:23 +00:00
2018-08-01 08:24:34 +00:00
2018-05-18 20:13:34 +00:00
2018-07-30 15:46:40 +00:00
2018-08-13 19:05:53 +00:00
2018-08-13 19:05:53 +00:00
2017-11-27 14:52:40 +00:00
2018-05-18 20:13:34 +00:00
2017-11-30 20:33:45 +00:00
2018-05-18 20:13:34 +00:00
2018-06-13 07:55:57 +00:00
2018-05-18 20:13:34 +00:00
2017-11-30 15:48:35 +00:00
2018-06-07 13:57:34 +00:00
2017-11-27 14:52:40 +00:00
2018-04-06 17:35:35 +00:00
2018-05-18 20:13:34 +00:00
2018-08-07 17:13:42 +00:00
2017-11-27 14:52:40 +00:00
2017-11-27 14:52:40 +00:00
2018-07-17 09:11:53 +00:00
2018-07-18 10:12:53 +00:00
2017-11-27 14:52:40 +00:00
2018-05-25 19:00:28 +00:00
2017-07-09 17:02:47 +00:00
2017-11-30 20:33:45 +00:00
2018-08-13 19:59:42 +00:00
2018-08-13 19:59:42 +00:00
2018-01-21 15:42:36 +00:00
2018-05-23 07:39:00 +00:00
2018-06-10 10:23:31 +00:00
2018-05-18 20:13:34 +00:00
2018-03-05 14:34:52 +00:00
2017-12-27 03:23:21 +00:00
2018-03-30 18:50:13 +00:00
2018-07-05 02:43:10 +00:00
2018-05-18 20:13:34 +00:00
2018-07-27 18:28:22 +00:00
2018-08-19 00:22:21 +00:00
2018-01-02 20:58:05 +00:00
2018-01-29 00:14:46 +00:00
2018-08-14 18:58:16 +00:00
2018-08-14 19:12:45 +00:00
2018-05-18 20:13:34 +00:00
2017-11-20 19:36:21 +00:00
2018-01-29 00:14:46 +00:00
2018-08-19 00:22:21 +00:00
2018-05-06 00:22:38 +00:00
2017-11-27 14:52:40 +00:00
2018-08-03 20:04:06 +00:00
2017-11-27 14:52:40 +00:00
2017-11-27 14:52:40 +00:00
2018-05-18 20:13:34 +00:00
2018-07-22 18:31:15 +00:00
2018-08-19 00:22:21 +00:00
2018-05-18 20:13:34 +00:00
2018-03-20 00:03:49 +00:00
2017-11-27 14:52:40 +00:00
2018-08-19 00:22:21 +00:00
2018-07-04 09:07:18 +00:00
2017-11-27 14:52:40 +00:00
2018-08-19 00:22:21 +00:00
2018-05-18 20:13:34 +00:00
2017-10-21 07:23:45 +00:00
2017-11-27 14:52:40 +00:00
2017-11-30 20:33:45 +00:00
2018-04-13 20:30:49 +00:00
2018-08-14 13:56:49 +00:00
2018-01-21 15:42:36 +00:00
2017-11-27 14:52:40 +00:00
2018-08-19 00:22:21 +00:00
2018-07-25 02:36:55 +00:00
2018-05-18 20:13:34 +00:00
2018-05-18 20:13:34 +00:00
2018-05-18 20:13:34 +00:00
2017-11-27 14:52:40 +00:00
2018-03-09 11:33:56 +00:00
2018-08-17 03:49:07 +00:00
2017-11-27 14:52:40 +00:00
2018-05-18 20:13:34 +00:00
2018-05-18 20:13:34 +00:00
2017-11-27 14:52:40 +00:00
2018-04-06 17:35:35 +00:00
2017-11-27 14:52:40 +00:00
2018-06-19 00:38:28 +00:00
2018-07-18 00:56:25 +00:00
2018-08-13 21:53:18 +00:00
2017-11-27 14:52:40 +00:00
2018-08-14 16:33:30 +00:00
2018-07-18 00:56:25 +00:00
2018-05-18 20:13:34 +00:00
2018-05-18 20:13:34 +00:00
2018-05-18 20:13:34 +00:00
2017-11-27 14:52:40 +00:00
2018-04-06 17:35:35 +00:00
2018-05-18 20:13:34 +00:00
2018-07-27 10:40:48 +00:00
2018-07-13 22:49:48 +00:00
2017-11-27 14:52:40 +00:00
2017-12-25 04:48:39 +00:00
2018-05-18 20:13:34 +00:00
2017-11-27 14:52:40 +00:00
2018-08-01 14:50:41 +00:00
2018-08-19 00:22:21 +00:00
2018-05-18 20:13:34 +00:00
2018-01-29 00:14:46 +00:00
2018-05-18 20:13:34 +00:00
2017-11-27 14:52:40 +00:00
2018-06-10 10:23:31 +00:00
2018-03-24 12:48:10 +00:00
2017-11-27 14:52:40 +00:00
2017-11-27 14:52:40 +00:00
2018-05-18 20:13:34 +00:00
2018-05-18 20:13:34 +00:00
2017-11-27 14:52:40 +00:00
2018-05-18 20:13:34 +00:00
2017-11-27 14:52:40 +00:00
2017-11-27 14:52:40 +00:00
2017-11-27 14:52:40 +00:00
2018-05-18 20:13:34 +00:00
2018-05-18 20:13:34 +00:00
2018-08-19 00:22:21 +00:00
2018-07-18 00:56:25 +00:00
2018-08-19 00:22:21 +00:00
2018-06-20 00:48:46 +00:00
2018-05-18 20:13:34 +00:00
2017-11-27 14:52:40 +00:00
2018-06-17 20:45:48 +00:00
2018-04-06 17:35:35 +00:00
2018-05-18 20:13:34 +00:00
2018-07-14 16:06:53 +00:00
2018-05-18 20:13:34 +00:00
2018-08-07 08:33:40 +00:00
2018-05-18 20:13:34 +00:00
2017-11-27 14:52:40 +00:00
2018-01-03 00:56:30 +00:00
2018-05-18 20:13:34 +00:00
2018-01-13 16:31:07 +00:00
2018-05-18 20:13:34 +00:00
2018-01-02 00:07:28 +00:00
2018-05-23 21:02:14 +00:00
2018-04-13 12:43:54 +00:00
2018-05-18 20:13:34 +00:00
2018-07-30 15:46:40 +00:00
2018-08-19 00:22:21 +00:00