aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/net-sysfs.c
diff options
context:
space:
mode:
authordavid decotigny <david.decotigny@google.com>2011-11-16 07:15:08 -0500
committerDavid S. Miller <davem@davemloft.net>2011-11-16 23:14:01 -0500
commit19b05f811341aaef3e5e22d2832aa2d8e0bad5ab (patch)
treea5bba2f7fdeb67099aa4848dba9868ac2c1b96f1 /net/core/net-sysfs.c
parent674aee3b351c57d8b89f363c8947db74756545f8 (diff)
net-sysfs: fixed minor sparse warning
This commit fixes following warning: net/core/net-sysfs.c:921:6: warning: symbol 'numa_node' shadows an earlier one include/linux/topology.h:222:1: originally declared here Signed-off-by: David Decotigny <david.decotigny@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/net-sysfs.c')
-rw-r--r--net/core/net-sysfs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/core/net-sysfs.c b/net/core/net-sysfs.c
index c71c434a4c05..a64382f201b8 100644
--- a/net/core/net-sysfs.c
+++ b/net/core/net-sysfs.c
@@ -901,7 +901,7 @@ static ssize_t store_xps_map(struct netdev_queue *queue,
901 struct xps_map *map, *new_map; 901 struct xps_map *map, *new_map;
902 struct xps_dev_maps *dev_maps, *new_dev_maps; 902 struct xps_dev_maps *dev_maps, *new_dev_maps;
903 int nonempty = 0; 903 int nonempty = 0;
904 int numa_node = -2; 904 int numa_node_id = -2;
905 905
906 if (!capable(CAP_NET_ADMIN)) 906 if (!capable(CAP_NET_ADMIN))
907 return -EPERM; 907 return -EPERM;
@@ -944,10 +944,10 @@ static ssize_t store_xps_map(struct netdev_queue *queue,
944 need_set = cpumask_test_cpu(cpu, mask) && cpu_online(cpu); 944 need_set = cpumask_test_cpu(cpu, mask) && cpu_online(cpu);
945#ifdef CONFIG_NUMA 945#ifdef CONFIG_NUMA
946 if (need_set) { 946 if (need_set) {
947 if (numa_node == -2) 947 if (numa_node_id == -2)
948 numa_node = cpu_to_node(cpu); 948 numa_node_id = cpu_to_node(cpu);
949 else if (numa_node != cpu_to_node(cpu)) 949 else if (numa_node_id != cpu_to_node(cpu))
950 numa_node = -1; 950 numa_node_id = -1;
951 } 951 }
952#endif 952#endif
953 if (need_set && pos >= map_len) { 953 if (need_set && pos >= map_len) {
@@ -997,7 +997,7 @@ static ssize_t store_xps_map(struct netdev_queue *queue,
997 if (dev_maps) 997 if (dev_maps)
998 kfree_rcu(dev_maps, rcu); 998 kfree_rcu(dev_maps, rcu);
999 999
1000 netdev_queue_numa_node_write(queue, (numa_node >= 0) ? numa_node : 1000 netdev_queue_numa_node_write(queue, (numa_node_id >= 0) ? numa_node_id :
1001 NUMA_NO_NODE); 1001 NUMA_NO_NODE);
1002 1002
1003 mutex_unlock(&xps_map_mutex); 1003 mutex_unlock(&xps_map_mutex);