Commit 6532914a authored by David S. Miller's avatar David S. Miller

[CPUMASK]: Prevent unused variable warnings on uniprocessor.

parent 13d5cf60
......@@ -3,10 +3,10 @@
#define cpus_coerce(map) (map)
#define cpu_set(cpu, map) do { cpus_coerce(map) = 1UL; } while (0)
#define cpu_clear(cpu, map) do { cpus_coerce(map) = 0UL; } while (0)
#define cpu_isset(cpu, map) (cpus_coerce(map) != 0UL)
#define cpu_test_and_set(cpu, map) test_and_set_bit(0, (map).mask)
#define cpu_set(cpu, map) do { (void)(cpu); cpus_coerce(map) = 1UL; } while (0)
#define cpu_clear(cpu, map) do { (void)(cpu); cpus_coerce(map) = 0UL; } while (0)
#define cpu_isset(cpu, map) ((void)(cpu), cpus_coerce(map) != 0UL)
#define cpu_test_and_set(cpu, map) ((void)(cpu), test_and_set_bit(0, (map).mask))
#define cpus_and(dst, src1, src2) \
do { \
......@@ -46,7 +46,7 @@
cpus_coerce(__tmp__) = map; \
__tmp__; \
})
#define cpumask_of_cpu(cpu) cpus_promote(1)
#define cpumask_of_cpu(cpu) ((void)(cpu), cpus_promote(1))
#define any_online_cpu(map) (cpus_coerce(map) ? 0 : 1)
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment