summaryrefslogtreecommitdiff
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2013-10-02 10:14:06 +0400
committerDavid S. Miller <davem@davemloft.net>2013-10-07 20:29:26 +0400
commit3573540cafa4296dd60f8be02f2aecaa31047525 (patch)
treed1df5c4648f5cead63251abc03409cce50c40928 /include/linux/netdevice.h
parent5e8a402f831dbe7ee831340a91439e46f0d38acd (diff)
downloadlinux-3573540cafa4296dd60f8be02f2aecaa31047525.tar.xz
netif_set_xps_queue: make cpu mask const
virtio wants to pass in cpumask_of(cpu), make parameter const to avoid build warnings. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 3de49aca4519..25f5d2d11e7c 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -2264,11 +2264,12 @@ static inline void netif_wake_subqueue(struct net_device *dev, u16 queue_index)
}
#ifdef CONFIG_XPS
-extern int netif_set_xps_queue(struct net_device *dev, struct cpumask *mask,
+extern int netif_set_xps_queue(struct net_device *dev,
+ const struct cpumask *mask,
u16 index);
#else
static inline int netif_set_xps_queue(struct net_device *dev,
- struct cpumask *mask,
+ const struct cpumask *mask,
u16 index)
{
return 0;