linux/drivers/net/wireless/ralink/rt2x00
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
..
Kconfig rt2x00: add support for MT7620 2017-03-22 11:04:52 +02:00
Makefile
rt2x00.h rt2x00: convert rt2x00_eeprom_read return type 2017-05-24 16:45:36 +03:00
rt2x00config.c rt2x00: save conf settings before reset tuner 2017-01-17 13:58:36 +02:00
rt2x00crypto.c
rt2x00debug.c networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
rt2x00debug.h rt2x00: change function pointers for register accessors 2017-05-24 16:45:32 +03:00
rt2x00dev.c mac80211: separate encoding/bandwidth from flags 2017-04-28 10:41:45 +02:00
rt2x00dump.h
rt2x00firmware.c
rt2x00leds.c
rt2x00leds.h
rt2x00lib.h rt2x00: merge agc and vco works with link tuner 2016-12-30 13:34:20 +02:00
rt2x00link.c rt2x00: add mutex to synchronize config and link tuner 2016-12-30 14:03:41 +02:00
rt2x00mac.c rt2x00: do not flush empty queue 2017-01-17 13:58:38 +02:00
rt2x00mmio.c rt2x00: convert rt2x00mmio_register_read return type 2017-05-24 16:45:33 +03:00
rt2x00mmio.h rt2x00: convert rt2x00mmio_register_read return type 2017-05-24 16:45:33 +03:00
rt2x00pci.c rt2x00pci: Disable memory-write-invalidate when the driver exits 2016-01-07 11:22:46 +02:00
rt2x00pci.h
rt2x00queue.c rt2800: use TXOP_BACKOFF for probe frames 2017-03-08 17:05:53 +02:00
rt2x00queue.h rt2x00: convert rt2x00_desc_read return type 2017-05-24 16:45:37 +03:00
rt2x00reg.h
rt2x00soc.c rt2x00: fix clk_get call 2017-01-31 09:08:52 +02:00
rt2x00soc.h
rt2x00usb.c rt2x00: convert rt2x00usb_register_read return type 2017-05-24 16:45:34 +03:00
rt2x00usb.h rt2x00: convert rt2x00usb_register_read return type 2017-05-24 16:45:34 +03:00
rt61pci.c rt2x00: convert rt2x00_desc_read return type 2017-05-24 16:45:37 +03:00
rt61pci.h net: wireless: rt2x00: Fixed Spacing issues 2016-02-07 09:10:05 +02:00
rt73usb.c rt2x00: convert rt2x00_desc_read return type 2017-05-24 16:45:37 +03:00
rt73usb.h
rt2400pci.c rt2x00: convert rt2x00_desc_read return type 2017-05-24 16:45:37 +03:00
rt2400pci.h
rt2500pci.c rt2x00: convert rt2x00_desc_read return type 2017-05-24 16:45:37 +03:00
rt2500pci.h
rt2500usb.c rt2x00: convert rt2x00_desc_read return type 2017-05-24 16:45:37 +03:00
rt2500usb.h
rt2800.h rt2x00: add support for MT7620 2017-03-22 11:04:52 +02:00
rt2800lib.c rt2x00: convert rt2x00_desc_read return type 2017-05-24 16:45:37 +03:00
rt2800lib.h rt2x00: convert rt2800_register_read return type 2017-05-24 16:45:35 +03:00
rt2800mmio.c rt2x00: convert rt2x00_desc_read return type 2017-05-24 16:45:37 +03:00
rt2800mmio.h
rt2800pci.c rt2x00: convert rt2x00mmio_register_read return type 2017-05-24 16:45:33 +03:00
rt2800pci.h
rt2800soc.c rt2x00: convert rt2x00mmio_register_read return type 2017-05-24 16:45:33 +03:00
rt2800usb.c rt2x00: Add device ID for Epson WN7512BEP 2017-05-24 16:47:54 +03:00
rt2800usb.h