kernel_optimize_test/net/mac80211
Johannes Berg b080db5853 networking: convert many more places to skb_put_zero()
There were many places that my previous spatch didn't find,
as pointed out by yuan linyu in various patches.

The following spatch found many more and also removes the
now unnecessary casts:

    @@
    identifier p, p2;
    expression len;
    expression skb;
    type t, t2;
    @@
    (
    -p = skb_put(skb, len);
    +p = skb_put_zero(skb, len);
    |
    -p = (t)skb_put(skb, len);
    +p = skb_put_zero(skb, len);
    )
    ... when != p
    (
    p2 = (t2)p;
    -memset(p2, 0, len);
    |
    -memset(p, 0, len);
    )

    @@
    type t, t2;
    identifier p, p2;
    expression skb;
    @@
    t *p;
    ...
    (
    -p = skb_put(skb, sizeof(t));
    +p = skb_put_zero(skb, sizeof(t));
    |
    -p = (t *)skb_put(skb, sizeof(t));
    +p = skb_put_zero(skb, sizeof(t));
    )
    ... when != p
    (
    p2 = (t2)p;
    -memset(p2, 0, sizeof(*p));
    |
    -memset(p, 0, sizeof(*p));
    )

    @@
    expression skb, len;
    @@
    -memset(skb_put(skb, len), 0, len);
    +skb_put_zero(skb, len);

Apply it to the tree (with one manual fixup to keep the
comment in vxlan.c, which spatch removed.)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-06-16 11:48:35 -04:00
..
aes_ccm.c
aes_ccm.h
aes_cmac.c
aes_cmac.h
aes_gcm.c
aes_gcm.h
aes_gmac.c
aes_gmac.h
agg-rx.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
agg-tx.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
cfg.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-06-15 11:59:32 -04:00
chan.c
debug.h
debugfs_key.c
debugfs_key.h
debugfs_netdev.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
debugfs_netdev.h
debugfs_sta.c mac80211: Dynamically set CoDel parameters per station 2017-05-17 16:03:40 +02:00
debugfs_sta.h
debugfs.c
debugfs.h
driver-ops.c
driver-ops.h
ethtool.c
fils_aead.c
fils_aead.h
ht.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
ibss.c mac80211: move clearing result into ieee80211_parse_ch_switch_ie() 2017-05-19 13:25:57 +02:00
ieee80211_i.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-06-15 11:59:32 -04:00
iface.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2017-06-15 11:59:32 -04:00
Kconfig
key.c
key.h
led.c
led.h
main.c
Makefile
mesh_hwmp.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
mesh_pathtbl.c
mesh_plink.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
mesh_ps.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
mesh_sync.c
mesh.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
mesh.h
michael.c
michael.h
mlme.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
ocb.c
offchannel.c
pm.c
rate.c mac80211: Dynamically set CoDel parameters per station 2017-05-17 16:03:40 +02:00
rate.h
rc80211_minstrel_debugfs.c
rc80211_minstrel_ht_debugfs.c
rc80211_minstrel_ht.c
rc80211_minstrel_ht.h
rc80211_minstrel.c
rc80211_minstrel.h
rx.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
scan.c
spectmgmt.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
sta_info.c Merge remote-tracking branch 'net-next/master' into mac80211-next 2017-06-08 14:14:45 +02:00
sta_info.h mac80211: manage RX BA session offload without SKB queue 2017-06-08 14:16:29 +02:00
status.c mac80211: Invoke TX LED in more code paths 2017-05-30 09:18:13 +02:00
tdls.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
tkip.c
tkip.h
trace_msg.h
trace.c
trace.h mac80211: add the action to the drv_ampdu_action tracepoint 2017-06-13 11:06:39 +02:00
tx.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
util.c networking: convert many more places to skb_put_zero() 2017-06-16 11:48:35 -04:00
vht.c
wep.c
wep.h
wme.c
wme.h
wpa.c mac80211/wpa: use constant time memory comparison for MACs 2017-06-13 10:24:34 +02:00
wpa.h