linux/drivers/media
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
..
cec [media] cec: race fix: don't return -ENONET in cec_receive() 2017-06-08 07:36:36 -03:00
common
dvb-core networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
dvb-frontends
firewire
i2c [media] tc358743: fix register i2c_rd/wr function fix 2017-06-06 07:09:23 -03:00
mmc
pci Annotation of module parameters that specify device settings 2017-05-10 19:13:03 -07:00
platform media fixes for v4.12-rc4 2017-06-06 09:37:44 -07:00
radio networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
rc [media] sir_ir: infinite loop in interrupt handler 2017-06-06 07:19:10 -03:00
spi
tuners
usb [media] rainshadow-cec: Fix missing spin_lock_init() 2017-06-06 07:10:01 -03:00
v4l2-core [media] vb2: Fix an off by one error in 'vb2_plane_vaddr' 2017-06-06 07:10:39 -03:00
Kconfig [media] cec: rename MEDIA_CEC_NOTIFIER to CEC_NOTIFIER 2017-06-04 15:23:35 -03:00
Makefile [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03:00
media-device.c
media-devnode.c
media-entity.c