linux/drivers/net/ethernet/toshiba
Johannes Berg d58ff35122 networking: make skb_push & __skb_push 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 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_push, __skb_push, skb_push_rcsum };
    @@
    - *(fn(SKB, LEN))
    + *(u8 *)fn(SKB, LEN)

    @@
    expression E, SKB, LEN;
    identifier fn = { skb_push, __skb_push, skb_push_rcsum };
    type T;
    @@
    - E = ((T *)(fn(SKB, LEN)))
    + E = fn(SKB, LEN)

    @@
    expression SKB, LEN;
    identifier fn = { skb_push, __skb_push, skb_push_rcsum };
    @@
    - fn(SKB, LEN)[0]
    + *(u8 *)fn(SKB, LEN)

Note that the last part there converts from push(...)[0] to the
more idiomatic *(u8 *)push(...).

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-16 11:48:40 -04:00
..
Kconfig drivers/net: remove all references to obsolete Ethernet-HOWTO 2015-06-23 06:50:35 -07:00
Makefile
ps3_gelic_net.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
ps3_gelic_net.h ethernet/toshiba: use core min/max MTU checking 2016-10-18 11:34:21 -04:00
ps3_gelic_wireless.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-11-15 10:54:36 -05:00
ps3_gelic_wireless.h toshiba: Remove extern from function prototypes 2013-09-24 12:54:12 -07:00
spider_net_ethtool.c net: toshiba: spider_net: use new api ethtool_{get|set}_link_ksettings 2017-03-08 22:18:05 -08:00
spider_net.c drivers: net: generalize napi_complete_done() 2017-01-30 15:10:42 -05:00
spider_net.h toshiba: Remove extern from function prototypes 2013-09-24 12:54:12 -07:00
tc35815.c format-security: move static strings to const 2017-05-08 17:15:14 -07:00