linux_dsm_epyc7002/drivers/net/wireless/ath/ath6kl
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
..
bmi.c
bmi.h
cfg80211.c cfg80211: add request id to cfg80211_sched_scan_*() api 2017-04-28 14:51:43 +02:00
cfg80211.h
common.h
core.c
core.h ath6kl: Use net_device_stats from struct net_device 2017-02-14 19:57:19 +02:00
debug.c networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
debug.h ath6kl: add __printf verification to ath6kl_dbg 2017-04-13 15:43:39 +03:00
hif-ops.h
hif.c
hif.h
htc_mbox.c
htc_pipe.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
htc-ops.h
htc.h
init.c
Kconfig
main.c net: Fix inconsistent teardown and release of private netdev state. 2017-06-07 15:53:24 -04:00
Makefile
recovery.c
sdio.c ath6kl: fix warning for using 0 as NULL 2017-01-19 15:14:52 +02:00
target.h
testmode.c netlink: pass extended ACK struct to parsing functions 2017-04-13 13:58:22 -04:00
testmode.h
trace.c
trace.h
txrx.c ath6kl: assure headroom of skbuff is writable in .start_xmit() 2017-05-19 10:47:04 +03:00
usb.c
wmi.c cfg80211: add request id to cfg80211_sched_scan_*() api 2017-04-28 14:51:43 +02:00
wmi.h