]> git.hungrycats.org Git - linux/commit
[PATCH] sparse: the rest of ifr_data cleanups and annotations
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>
Fri, 4 Jun 2004 07:10:51 +0000 (00:10 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 4 Jun 2004 07:10:51 +0000 (00:10 -0700)
commit090014ee67ea80bfc410ccea0861473b358fe044
treefb7002b876b10dc160fc7401a09cf71d91c7b17a
parenta086d60f386829bc2bce35201404a4712abd64d7
[PATCH] sparse: the rest of ifr_data cleanups and annotations

The rest of ->ifr_data cleanups.  A bunch of drivers use address
of ifr->ifr_ifru, but spell that as &ifr->ifr_data, which expands to
&ifr->ifr_ifru.ifru_data.  ifr_ifru is a union and in effect they sneak in
a private field into that union; ifr_ifru.ifru_data is a field in that
union and it has nothing to do with the things they want to do.  Cleaned
up by explicit use of &ifr->ifr_ifru.

Several places where we really use ->ifr_data (i.e. use its value
and use it as __user pointer) annotated.
28 files changed:
drivers/net/appletalk/cops.c
drivers/net/appletalk/ipddp.c
drivers/net/au1000_eth.c
drivers/net/depca.c
drivers/net/dl2k.c
drivers/net/eql.c
drivers/net/ewrk3.c
drivers/net/ewrk3.h
drivers/net/hamachi.c
drivers/net/hamradio/baycom_par.c
drivers/net/hamradio/baycom_ser_fdx.c
drivers/net/hamradio/baycom_ser_hdx.c
drivers/net/ibm_emac/ibm_emac_core.c
drivers/net/pcmcia/3c574_cs.c
drivers/net/pcmcia/axnet_cs.c
drivers/net/pcmcia/pcnet_cs.c
drivers/net/pcmcia/xirc2ps_cs.c
drivers/net/plip.c
drivers/net/sb1000.c
drivers/net/sb1250-mac.c
drivers/net/shaper.c
drivers/net/tulip/de4x5.c
drivers/net/tulip/xircom_tulip_cb.c
drivers/net/wan/pc300_drv.c
drivers/net/wan/sbni.c
drivers/usb/net/pegasus.c
drivers/usb/net/rtl8150.c
net/core/ethtool.c