diff options
author | Patrick McHardy <kaber@trash.net> | 2007-06-13 15:03:21 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-07-11 01:14:13 -0400 |
commit | 6472ce6096bf27d85a1f2580964a36f290bd60a9 (patch) | |
tree | 48ad046be2fdc6e8cbebdfe29e5ba94a5c4c8d8d /include | |
parent | b3d88ad49a0623d09efcf998beb26288c8029f75 (diff) |
[NET]: Mark struct net_device * argument to netdev_priv const
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/netdevice.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 3a70f553b28f..94cc77cd3aa3 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
@@ -546,7 +546,7 @@ struct net_device | |||
546 | #define NETDEV_ALIGN 32 | 546 | #define NETDEV_ALIGN 32 |
547 | #define NETDEV_ALIGN_CONST (NETDEV_ALIGN - 1) | 547 | #define NETDEV_ALIGN_CONST (NETDEV_ALIGN - 1) |
548 | 548 | ||
549 | static inline void *netdev_priv(struct net_device *dev) | 549 | static inline void *netdev_priv(const struct net_device *dev) |
550 | { | 550 | { |
551 | return (char *)dev + ((sizeof(struct net_device) | 551 | return (char *)dev + ((sizeof(struct net_device) |
552 | + NETDEV_ALIGN_CONST) | 552 | + NETDEV_ALIGN_CONST) |