diff options
-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) |