linux/drivers/staging/wilc1000
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 staging: wilc1000: removes WIRELESS_EXT 2016-03-28 07:30:36 -07:00
Makefile staging: wilc1000: message_queue: Move code to host interface 2016-06-25 14:39:53 -07:00
TODO drivers: wilc1000: remove references to semaphores 2016-08-21 17:27:16 +02:00
coreconfigurator.c Staging: wilc1000: Compress return logic into one line 2016-10-16 10:27:34 +02:00
coreconfigurator.h staging: wilc1000: Fixes camel-casing in wilc_gnrl_info_received 2017-03-09 14:52:22 +01:00
host_interface.c staging: wilc1000: Remove useless cast. 2017-03-09 14:55:09 +01:00
host_interface.h staging: wilc1000: Remove unnecessary extern variables. 2016-10-17 09:54:15 +02:00
linux_mon.c networking: make skb_push & __skb_push return void pointers 2017-06-16 11:48:40 -04:00
linux_wlan.c networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
wilc_debugfs.c staging:wilc1000:wilc_debugfs.c Removes multiple blank lines 2017-01-16 18:10:25 +01:00
wilc_sdio.c drivers/staging/wilc1000: Removing explicit function tracing using dev_dbg/info 2017-03-29 09:37:14 +02:00
wilc_spi.c staging: wilc1000: Remove unnecessary brackets 2017-03-16 11:47:41 +09:00
wilc_wfi_cfgoperations.c Staging/IIO patches for 4.12-rc1 2017-05-05 18:16:23 -07:00
wilc_wfi_cfgoperations.h Staging: wilc1000: Remove unused function WILC_WFI_update_stats 2016-02-20 14:43:48 -08:00
wilc_wfi_netdevice.h staging: wilc1000: Remove unused function wilc_lock_timeout 2016-10-25 10:53:27 +02:00
wilc_wlan.c staging: wilc1000: Alignment should match open parenthesis 2017-03-07 06:53:30 +01:00
wilc_wlan.h staging: wilc1000: function prototype argument should have identifier name 2017-03-07 06:53:30 +01:00
wilc_wlan_cfg.c staging: wilc1000: Use new format for configuring firmware 2017-04-08 13:00:43 +02:00
wilc_wlan_cfg.h staging: wilc1000: wilc_wlan_cfg_init: changes unused argument 2016-02-22 11:48:19 -08:00
wilc_wlan_if.h drivers: wilc1000: remove references to semaphores 2016-08-21 17:27:16 +02:00