[NET]: Mark struct net_device * argument to netdev_priv const
authorPatrick McHardy <kaber@trash.net>
Wed, 13 Jun 2007 19:03:21 +0000 (12:03 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 11 Jul 2007 05:14:13 +0000 (22:14 -0700)
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 3a70f553b28f853bede95f0b0437dfe1a161d88a..94cc77cd3aa348a5c7feef613939107ae4a1a715 100644 (file)
@@ -546,7 +546,7 @@ struct net_device
 #define        NETDEV_ALIGN            32
 #define        NETDEV_ALIGN_CONST      (NETDEV_ALIGN - 1)
 
-static inline void *netdev_priv(struct net_device *dev)
+static inline void *netdev_priv(const struct net_device *dev)
 {
        return (char *)dev + ((sizeof(struct net_device)
                                        + NETDEV_ALIGN_CONST)