alistair23-linux/drivers/net
Emil Renner Berthing ca04217add rtlwifi: use tasklet_setup to initialize rx_work_tasklet
In commit d3ccc14dfe most of the tasklets in this driver was
updated to the new API. However for the rx_work_tasklet only the
type of the callback was changed from
  void _rtl_rx_work(unsigned long data)
to
  void _rtl_rx_work(struct tasklet_struct *t).

The initialization of rx_work_tasklet was still open-coded and the
function pointer just cast into the old type, and hence nothing sets
rx_work_tasklet.use_callback = true and the callback was still called as

  t->func(t->data);

with uninitialized/zero t->data.

Commit 6b8c7574a5 changed the casting of _rtl_rx_work a bit and
initialized t->data to a pointer to the tasklet cast to an unsigned
long.

This way calling t->func(t->data) might actually work through all the
casting, but it still doesn't update the code to use the new tasklet
API.

Let's use the new tasklet_setup to initialize rx_work_tasklet properly
and set rx_work_tasklet.use_callback = true so that the callback is
called as

  t->callback(t);

without all the casting.

Signed-off-by: Emil Renner Berthing <kernel@esmil.dk>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210126171550.3066-1-kernel@esmil.dk
2021-02-08 12:37:49 +02:00
..
appletalk
arcnet arcnet: use new tasklet API 2021-02-02 15:51:17 -08:00
bonding
caif caif_virtio: use new tasklet API 2021-02-02 15:51:17 -08:00
can can: mcp251xfd: mcp251xfd_probe(): use dev_err_probe() to simplify error handling 2021-01-29 09:31:58 +01:00
dsa net: dsa: felix: propagate the LAG offload ops towards the ocelot lib 2021-02-06 14:51:51 -08:00
ethernet Merge branch '100GbE' of git://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue 2021-02-06 16:10:19 -08:00
fddi
fjes
hamradio
hippi
hyperv hv_netvsc: Load and store the proper (NBL_HASH_INFO) per-packet info 2021-02-04 20:37:04 -08:00
ieee802154
ipa net: ipa: avoid field overflow 2021-02-06 14:57:20 -08:00
ipvlan ipvlan: remove h from printk format specifier 2021-01-28 17:47:33 -08:00
mdio
netdevsim net: Do not call fib6_info_hw_flags_set() when IPv6 is disabled 2021-02-02 17:45:59 -08:00
pcs net: pcs: add pcs-lynx 1000BASE-X support 2021-02-06 14:35:21 -08:00
phy net: mdiobus: Prevent spike on MDIO bus reset signal 2021-02-03 17:28:05 -08:00
plip
ppp ppp: use new tasklet API 2021-02-02 15:51:18 -08:00
slip
team team: protect features update by RCU to avoid deadlock 2021-01-26 17:08:59 -08:00
usb r8152: adjust the flow of power cut for RTL8153B 2021-02-04 20:36:51 -08:00
vmxnet3 vmxnet3: Remove buf_info from device accessible structures 2021-01-29 21:07:03 -08:00
wan net: wan: farsync: use new tasklet API 2021-02-06 12:00:02 -08:00
wireguard
wireless rtlwifi: use tasklet_setup to initialize rx_work_tasklet 2021-02-08 12:37:49 +02:00
xen-netback
bareudp.c udp: call udp_encap_enable for v6 sockets when enabling encap 2021-02-04 18:37:14 -08:00
dummy.c
eql.c
geneve.c
gtp.c gtp: update rx_length_errors for abnormally short packets 2021-02-04 09:29:58 -08:00
ifb.c ifb: use new tasklet API 2021-02-02 15:51:18 -08:00
Kconfig bonding: add TLS dependency 2021-01-26 17:45:55 -08:00
LICENSE.SRC
loopback.c net-loopback: set lo dev initial state to UP 2021-02-04 18:37:08 -08:00
macsec.c
macvlan.c
macvtap.c
Makefile
mdio.c
mhi_net.c net: mhi-net: Add re-aggregation of fragmented packets 2021-02-06 11:28:45 -08:00
mii.c
net_failover.c
netconsole.c
nlmon.c
ntb_netdev.c
rionet.c
sb1000.c
Space.c
sungem_phy.c
tap.c
thunderbolt.c
tun.c
veth.c
virtio_net.c
vrf.c
vsockmon.c
vxlan.c
xen-netfront.c drivers: net: xen-netfront: Simplify the calculation of variables 2021-02-04 10:55:24 -08:00