* [PATCH] netif_set_xps_queue: make cpu mask const
@ 2013-10-02 6:14 Michael S. Tsirkin
2013-10-02 21:07 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Michael S. Tsirkin @ 2013-10-02 6:14 UTC (permalink / raw)
To: Jason Wang, rusty
Cc: David S. Miller, Eric Dumazet, Jiri Pirko, Vlad Yasevich,
Cong Wang, Alexander Duyck, netdev, linux-kernel
virtio wants to pass in cpumask_of(cpu), make parameter
const to avoid build warnings.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
include/linux/netdevice.h | 5 +++--
net/core/dev.c | 3 ++-
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 3de49ac..25f5d2d 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;
diff --git a/net/core/dev.c b/net/core/dev.c
index 5c713f2..f18eebd 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -1917,7 +1917,8 @@ static struct xps_map *expand_xps_map(struct xps_map *map,
return new_map;
}
-int netif_set_xps_queue(struct net_device *dev, struct cpumask *mask, u16 index)
+int netif_set_xps_queue(struct net_device *dev, const struct cpumask *mask,
+ u16 index)
{
struct xps_dev_maps *dev_maps, *new_dev_maps = NULL;
struct xps_map *map, *new_map;
--
MST
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] netif_set_xps_queue: make cpu mask const
2013-10-02 6:14 [PATCH] netif_set_xps_queue: make cpu mask const Michael S. Tsirkin
@ 2013-10-02 21:07 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2013-10-02 21:07 UTC (permalink / raw)
To: mst
Cc: jasowang, rusty, edumazet, jiri, vyasevic, amwang,
alexander.h.duyck, netdev, linux-kernel
From: "Michael S. Tsirkin" <mst@redhat.com>
Date: Wed, 2 Oct 2013 09:14:06 +0300
> virtio wants to pass in cpumask_of(cpu), make parameter
> const to avoid build warnings.
>
> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Refresh my memory, is to accomodate a change you want to submit to
'net' or 'net-next'? This patch only applies to 'net' cleanly.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-02 21:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-02 6:14 [PATCH] netif_set_xps_queue: make cpu mask const Michael S. Tsirkin
2013-10-02 21:07 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).