aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h2
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
549static inline void *netdev_priv(struct net_device *dev) 549static 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)