1
0
Fork 0
alistair23-linux/drivers
Johannes Berg af72868b90 networking: make skb_pull & 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 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_pull,
            __skb_pull,
            skb_pull_inline,
            __pskb_pull_tail,
            __pskb_pull,
            pskb_pull
    };
    @@
    - *(fn(SKB, LEN))
    + *(u8 *)fn(SKB, LEN)

    @@
    expression E, SKB, LEN;
    identifier fn = {
            skb_pull,
            __skb_pull,
            skb_pull_inline,
            __pskb_pull_tail,
            __pskb_pull,
            pskb_pull
    };
    type T;
    @@
    - E = ((T *)(fn(SKB, LEN)))
    + E = fn(SKB, LEN)

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
..
accessibility
acpi Merge branch 'acpica-fixes' 2017-06-15 01:52:32 +02:00
amba
android
ata
atm networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
auxdisplay
base Merge branches 'intel_pstate' and 'pm-sleep' 2017-06-09 01:25:16 +02:00
bcma
block Fix loop device flush before configure v3 2017-06-08 08:04:18 -06:00
bluetooth networking: make skb_pull & friends return void pointers 2017-06-16 11:48:39 -04:00
bus
cdrom
char networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
clk
clocksource
connector
cpufreq Merge branches 'pm-cpufreq', 'pm-cpuidle' and 'pm-devfreq' 2017-06-15 01:51:33 +02:00
cpuidle Merge branches 'pm-cpufreq', 'pm-cpuidle' and 'pm-devfreq' 2017-06-15 01:51:33 +02:00
crypto networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
dax device-dax: fix 'dax' device filesystem inode destruction crash 2017-06-09 08:50:49 -07:00
dca
devfreq PM / devfreq: exynos-ppmu: Staticize event list 2017-06-12 10:12:07 +09:00
dio
dma
dma-buf
edac
eisa
extcon
firewire networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
firmware Char/Misc driver fixes for 4.12-rc5 2017-06-11 11:29:15 -07:00
fmc
fpga
fsi
gpio gpio: mvebu: fix gpio bank registration when pwm is used 2017-06-09 09:38:27 +02:00
gpu Merge branch 'vmwgfx-fixes-4.12' of git://people.freedesktop.org/~thomash/linux into drm-fixes 2017-06-09 13:12:02 +10:00
hid HID: let generic driver yield control iff specific driver has been enabled 2017-06-13 16:52:50 +02:00
hsi hsi: Fix build regression due to netdev destructor fix. 2017-06-08 10:16:05 -04:00
hv
hwmon
hwspinlock
hwtracing
i2c
ide
idle
iio
infiniband networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
input Input: synaptics-rmi4 - register F03 port as pass-through serio 2017-06-09 09:57:19 -07:00
iommu
ipack
irqchip Xtensa fixes for v4.12-rc6 2017-06-13 15:09:10 +09:00
isdn networking: make skb_pull & friends return void pointers 2017-06-16 11:48:39 -04:00
leds
lguest
lightnvm
macintosh
mailbox
mcb
md md: initialise ->writes_pending in personality modules. 2017-06-05 16:04:35 -07:00
media networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
memory
memstick
message
mfd
misc networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
mmc
mtd
net networking: make skb_pull & friends return void pointers 2017-06-16 11:48:39 -04:00
nfc networking: make skb_pull & friends return void pointers 2017-06-16 11:48:39 -04:00
ntb
nubus
nvdimm
nvme nvme: relax APST default max latency to 100ms 2017-06-07 11:08:55 +02:00
nvmem
of Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-06-15 11:59:32 -04:00
oprofile
parisc
parport
pci
pcmcia
perf
phy
pinctrl
platform
pnp
power
powercap
pps
ps3
ptp ptp: Add a ptp clock driver for Broadcom DTE 2017-06-15 12:07:15 -04:00
pwm
rapidio
ras
regulator
remoteproc
reset
rpmsg networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
rtc
s390 networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
sbus
scsi networking: make skb_pull & friends return void pointers 2017-06-16 11:48:39 -04:00
sfi
sh
sn
soc
spi
spmi
ssb
staging networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
target networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
tc
tee
thermal
thunderbolt
tty networking: introduce and use skb_put_data() 2017-06-16 11:48:37 -04:00
uio
usb networking: make skb_put & friends return void pointers 2017-06-16 11:48:39 -04:00
uwb
vfio
vhost
video
virt
virtio
vlynq
vme
w1
watchdog
xen xen: fix for 4.12 rc5 2017-06-09 09:59:51 -07:00
zorro
Kconfig
Makefile