Johannes Berg
4df864c1d9
networking: make skb_put & friends return void pointers
...
It seems like a historic accident that these return unsigned char *,
and in many places that means casts are required, more often than not.
Make these functions (skb_put, __skb_put and pskb_put) return void *
and remove all the casts across the tree, adding a (u8 *) cast only
where the unsigned char pointer was used directly, all done with the
following spatch:
@@
expression SKB, LEN;
typedef u8;
identifier fn = { skb_put, __skb_put };
@@
- *(fn(SKB, LEN))
+ *(u8 *)fn(SKB, LEN)
@@
expression E, SKB, LEN;
identifier fn = { skb_put, __skb_put };
type T;
@@
- E = ((T *)(fn(SKB, LEN)))
+ E = fn(SKB, LEN)
which actually doesn't cover pskb_put since there are only three
users overall.
A handful of stragglers were converted manually, notably a macro in
drivers/isdn/i4l/isdn_bsdcomp.c and, oddly enough, one of the many
instances in net/bluetooth/hci_sock.c. In the former file, I also
had to fix one whitespace problem spatch introduced.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-16 11:48:39 -04:00
..
2017-05-01 10:47:53 -04:00
2017-05-08 11:38:35 +02:00
2017-05-01 11:19:12 +02:00
2017-02-08 14:17:09 +01:00
2017-02-08 14:16:21 +01:00
2017-04-26 09:30:22 +02:00
2017-04-19 17:55:16 +02:00
2017-05-10 10:30:46 -07:00
2017-04-26 09:30:22 +02:00
2017-05-01 10:47:53 -04:00
2017-05-01 11:48:49 +02:00
2017-04-19 17:55:17 +02:00
2016-07-11 12:32:45 +02:00
2017-04-19 17:55:17 +02:00
2017-05-15 12:42:29 +02:00
2017-04-19 17:55:17 +02:00
2017-04-26 09:30:22 +02:00
2017-04-19 17:55:16 +02:00
2017-05-24 11:26:01 +02:00
2017-04-26 09:30:22 +02:00
2017-05-01 10:47:53 -04:00
2016-08-13 13:27:13 +02:00
2016-11-18 10:59:15 -05:00
2017-05-23 22:54:14 +02:00
2017-05-01 10:47:53 -04:00
2017-02-02 14:31:51 +01:00
2017-04-14 01:54:23 +02:00
2017-04-19 17:55:17 +02:00
2017-04-26 09:30:22 +02:00
2017-04-19 17:55:17 +02:00
2017-04-07 17:29:21 +02:00
2017-04-19 17:55:17 +02:00
2017-04-26 09:30:22 +02:00
2017-04-26 09:30:22 +02:00
2016-12-06 21:48:22 +01:00
2017-05-01 11:19:12 +02:00
2016-12-04 20:45:33 +01:00
2016-12-04 20:45:33 +01:00
2017-05-01 11:19:07 +02:00
2017-04-06 22:01:38 +02:00
2017-05-23 22:54:51 +02:00
2017-04-06 22:01:38 +02:00
2017-04-06 22:01:38 +02:00
2016-12-04 20:45:30 +01:00
2017-03-08 18:04:06 +01:00
2017-01-03 14:33:25 +01:00
2017-04-08 23:52:16 +02:00
2017-05-01 11:19:12 +02:00
2017-05-17 16:06:01 -04:00
2017-05-15 12:51:41 +02:00
2016-11-09 23:42:23 +01:00
2016-09-12 19:54:45 +02:00
2017-04-06 18:32:04 +02:00
2017-04-07 16:31:36 +02:00
2017-05-01 10:47:53 -04:00
2017-05-15 12:42:29 +02:00
2017-05-01 10:47:53 -04:00
2017-06-16 11:48:39 -04:00
2017-06-16 11:48:39 -04:00
2017-05-01 10:47:53 -04:00
2017-05-15 12:51:41 +02:00
2016-11-09 23:42:23 +01:00
2017-05-15 12:51:41 +02:00
2017-05-01 10:47:53 -04:00
2017-03-13 13:42:00 +01:00
2017-05-15 12:42:29 +02:00
2016-01-03 21:04:23 +01:00
2017-05-03 10:11:26 -04:00
2017-04-07 18:24:47 +02:00
2016-11-03 11:52:34 +01:00
2017-03-13 13:45:36 +01:00
2016-12-06 21:48:22 +01:00
2017-05-01 10:47:53 -04:00
2017-05-15 12:51:41 +02:00
2017-03-13 19:30:31 +01:00
2017-01-24 21:46:29 +01:00
2017-03-06 18:23:23 +01:00
2017-03-06 18:22:12 +01:00
2017-04-07 18:24:47 +02:00
2017-03-23 16:41:27 -07:00
2017-04-07 18:24:47 +02:00
2017-03-06 18:23:23 +01:00
2016-12-14 23:39:11 +01:00
2017-04-07 18:24:47 +02:00
2017-03-13 13:42:00 +01:00
2017-05-15 12:51:41 +02:00
2017-03-06 18:22:12 +01:00
2017-03-06 18:22:12 +01:00
2017-03-06 18:22:12 +01:00
2016-11-03 11:52:34 +01:00
2017-04-24 20:05:25 +02:00
2017-05-15 12:51:39 +02:00
2017-05-23 22:54:14 +02:00
2017-05-18 13:10:03 +02:00
2016-11-03 10:56:21 +01:00
2017-05-02 10:16:04 -04:00
2017-01-09 17:24:55 +01:00
2017-01-09 17:24:55 +01:00
2017-04-15 11:51:33 +02:00
2016-12-04 21:16:50 +01:00
2017-04-15 11:51:33 +02:00
2017-01-09 17:24:55 +01:00
2017-04-15 11:51:33 +02:00
2016-12-04 21:16:50 +01:00
2017-04-15 11:47:57 +02:00
2017-05-15 12:42:29 +02:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2017-04-07 17:29:17 +02:00
2016-12-04 21:16:50 +01:00
2017-04-15 11:51:33 +02:00
2016-04-29 14:28:48 +02:00
2016-10-17 17:38:19 +02:00
2017-04-15 11:51:33 +02:00
2017-03-13 19:30:31 +01:00
2016-11-03 10:56:21 +01:00
2016-12-06 21:48:20 +01:00
2016-12-04 21:16:51 +01:00
2016-12-04 21:16:51 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2016-11-03 10:56:21 +01:00
2017-03-02 08:42:31 +01:00
2016-08-12 00:42:14 +02:00
2017-01-18 20:32:43 +01:00
2016-11-03 10:56:21 +01:00
2017-01-09 17:24:55 +01:00
2017-01-09 17:24:55 +01:00
2017-01-09 17:24:55 +01:00
2017-05-08 17:15:13 -07:00
2016-12-04 21:16:51 +01:00
2016-09-22 03:13:26 -04:00
2016-11-10 13:28:42 +01:00
2017-04-24 20:06:29 +02:00
2017-04-15 11:47:57 +02:00
2017-01-09 17:24:55 +01:00
2017-04-08 22:24:19 +02:00
2016-07-03 10:55:07 +02:00
2017-01-09 17:24:55 +01:00
2016-12-25 17:21:22 +01:00
2017-04-08 23:52:16 +02:00
2016-06-23 13:26:49 +02:00