]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
netdevice: safe convert to netdev_priv() #part-1
authorWang Chen <wangchen@cn.fujitsu.com>
Thu, 13 Nov 2008 07:37:49 +0000 (23:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Nov 2008 07:37:49 +0000 (23:37 -0800)
commit454d7c9b14e20fd1949e2686e9de4a2926e01476
treefae8bd1bfb5fd496977a0639ad71c54a2ee278ae
parent7a12122c7a00347da9669cfcde82954c9e3d6f5e
netdevice: safe convert to netdev_priv() #part-1

We have some reasons to kill netdev->priv:
1. netdev->priv is equal to netdev_priv().
2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
   netdev_priv() is more flexible than netdev->priv.
But we cann't kill netdev->priv, because so many drivers reference to it
directly.

This patch is a safe convert for netdev->priv to netdev_priv(netdev).
Since all of the netdev->priv is only for read.
But it is too big to be sent in one mail.
I split it to 4 parts and make every part smaller than 100,000 bytes,
which is max size allowed by vger.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
32 files changed:
drivers/net/3c501.c
drivers/net/3c505.c
drivers/net/3c523.c
drivers/net/3c59x.c
drivers/net/acenic.c
drivers/net/appletalk/ipddp.c
drivers/net/appletalk/ltpc.c
drivers/net/arcnet/arc-rawmode.c
drivers/net/arcnet/arc-rimi.c
drivers/net/arcnet/arcnet.c
drivers/net/arcnet/capmode.c
drivers/net/arcnet/com20020-isa.c
drivers/net/arcnet/com20020-pci.c
drivers/net/arcnet/com20020.c
drivers/net/arcnet/com90io.c
drivers/net/arcnet/com90xx.c
drivers/net/arcnet/rfc1051.c
drivers/net/arcnet/rfc1201.c
drivers/net/atarilance.c
drivers/net/atl1e/atl1e_main.c
drivers/net/atp.c
drivers/net/au1000_eth.c
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h
drivers/net/iseries_veth.c
drivers/net/ixgbe/ixgbe_ethtool.c
drivers/net/ixgbe/ixgbe_main.c
drivers/net/lp486e.c
drivers/net/mace.c