Re: netdev->priv and netdev_priv(dev)

2008-01-29 Thread Krzysztof Halasa
Stephen Hemminger <[EMAIL PROTECTED]> writes: > Those drivers were making a incorrect assumption and should be fixed. > The in-tree drivers were fixed when this was done. If you have an out > of tree driver, then too bad for you. I have few out-of-tree drivers (IOW not yet merged) but they aren't

Re: netdev->priv and netdev_priv(dev)

2008-01-29 Thread Stephen Hemminger
On Tue, 29 Jan 2008 21:10:00 +0100 Krzysztof Halasa <[EMAIL PROTECTED]> wrote: > A commit few months ago introduced a change: > > --- a/include/linux/netdevice.h > +++ b/include/linux/netdevice.h > > static inline void *netdev_priv(const struct net_device *dev) > { > - return (char *)de

[PATCH] netdev->priv and netdev_priv(dev)

2008-01-29 Thread Krzysztof Halasa
[This version shouldn't confuse git/patch] A commit few months ago introduced a change: - a/include/linux/netdevice.h + b/include/linux/netdevice.h static inline void *netdev_priv(const struct net_device *dev) { - return (char *)dev + ((sizeof(struct net_device) -

netdev->priv and netdev_priv(dev)

2008-01-29 Thread Krzysztof Halasa
A commit few months ago introduced a change: --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h static inline void *netdev_priv(const struct net_device *dev) { - return (char *)dev + ((sizeof(struct net_device) - + NETDEV_ALIGN_CONST) -