diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2011-12-07 06:06:12 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-12-07 17:26:57 -0500 |
commit | 3d6240b53e34e372be007e08f7066e7625910675 (patch) | |
tree | cb5191b19438a84c8eb6d735c26a79c216336ad1 /arch/x86 | |
parent | 4f941c57fe7e04e38c2401d53516bfd16038c9ab (diff) |
x86, NMI: Add to_cpumask() to silence compile warning
Gcc complains if we don't cast this to a struct cpumask pointer.
arch/x86/kernel/nmi_selftest.c:93:2:
warning: passing argument 1 of ‘cpumask_empty’ from
incompatible pointer type [enabled by default]
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Don Zickus <dzickus@redhat.com>
Link: http://lkml.kernel.org/r/20111207110612.GA3437@mwanda
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86')
-rw-r--r-- | arch/x86/kernel/nmi_selftest.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/nmi_selftest.c b/arch/x86/kernel/nmi_selftest.c index 1e42a23c1f2a..0d01a8ea4e11 100644 --- a/arch/x86/kernel/nmi_selftest.c +++ b/arch/x86/kernel/nmi_selftest.c | |||
@@ -90,7 +90,7 @@ static void remote_ipi(void) | |||
90 | { | 90 | { |
91 | cpumask_copy(to_cpumask(nmi_ipi_mask), cpu_online_mask); | 91 | cpumask_copy(to_cpumask(nmi_ipi_mask), cpu_online_mask); |
92 | cpumask_clear_cpu(smp_processor_id(), to_cpumask(nmi_ipi_mask)); | 92 | cpumask_clear_cpu(smp_processor_id(), to_cpumask(nmi_ipi_mask)); |
93 | if (!cpumask_empty(nmi_ipi_mask)) | 93 | if (!cpumask_empty(to_cpumask(nmi_ipi_mask))) |
94 | test_nmi_ipi(to_cpumask(nmi_ipi_mask)); | 94 | test_nmi_ipi(to_cpumask(nmi_ipi_mask)); |
95 | } | 95 | } |
96 | 96 | ||