1
0
Fork 0
alistair23-linux/drivers/net/wireless/realtek/rtlwifi
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
..
btcoexist rtlwifi: btcoex: 23b 1ant: initialize bt_disabled to false 2017-05-24 16:51:30 +03:00
rtl8188ee networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
rtl8192c rtlwifi: Move items out of rtl_pci_priv and rtl_usb_priv 2017-02-08 17:24:42 +02:00
rtl8192ce mac80211: separate encoding/bandwidth from flags 2017-04-28 10:41:45 +02:00
rtl8192cu networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
rtl8192de mac80211: separate encoding/bandwidth from flags 2017-04-28 10:41:45 +02:00
rtl8192ee rtlwifi: fix spelling mistake: "Pairwiase" -> "Pairwise" 2017-05-18 17:14:18 +03:00
rtl8192se networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
rtl8723ae rtlwifi: rtl8723ae: fix spelling mistake: "Coexistance" -> "Coexistence" 2017-05-18 17:15:00 +03:00
rtl8723be rtlwifi: fix spelling mistake: "Pairwiase" -> "Pairwise" 2017-05-18 17:14:18 +03:00
rtl8723com rtlwifi: Download firmware as bytes rather than as dwords 2017-01-20 12:06:09 +02:00
rtl8821ae Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2017-05-02 19:09:35 -07:00
Kconfig
Makefile Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
base.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
base.h rtlwifi: Add work queue for c2h cmd. 2017-02-07 09:25:08 +02:00
cam.c rtlwifi: Fix programing CAM content sequence. 2017-02-07 09:25:08 +02:00
cam.h
core.c rtlwifi: Set retry limit depends on vif type. 2017-02-07 09:25:08 +02:00
core.h
debug.c rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
debug.h rtlwifi: Convert COMP_XX entries into a proper debugging mask 2017-01-20 12:05:17 +02:00
efuse.c rtlwifi: rtl8723be: btcoex: add package_type function to btcoex 2017-02-07 09:25:08 +02:00
efuse.h rtlwifi: rtl8723be: btcoex: add package_type function to btcoex 2017-02-07 09:25:08 +02:00
pci.c networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
pci.h rtlwifi: rtl8192c-common: Fix "BUG: KASAN: 2017-02-07 10:07:59 +02:00
ps.c rtlwifi: Set retry limit depends on vif type. 2017-02-07 09:25:08 +02:00
ps.h rtlwifi: Remove unused parameter from rtl_ps_set_rf_state() 2016-07-05 17:31:41 +03:00
pwrseqcmd.h
rc.c rtlwifi: Remove RT_TRACE messages that use DBG_EMERG 2016-12-30 15:54:20 +02:00
rc.h
regd.c rtlwifi: fix spelling mistake: "conuntry" -> "country" 2017-03-08 17:07:32 +02:00
regd.h
stats.c rtlwifi: use s8 instead of char 2016-06-29 18:48:15 +03:00
stats.h rtlwifi: use s8 instead of char 2016-06-29 18:48:15 +03:00
usb.c networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
usb.h rtlwifi: Move items out of rtl_pci_priv and rtl_usb_priv 2017-02-08 17:24:42 +02:00
wifi.h rtlwifi: Update 8821ae new phy parameters and its parser. 2017-03-20 19:10:14 +02:00