projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f941c5
)
x86, NMI: Add to_cpumask() to silence compile warning
author
Dan Carpenter
<
[email protected]
>
Wed, 7 Dec 2011 11:06:12 +0000
(14:06 +0300)
committer
Ingo Molnar
<
[email protected]
>
Wed, 7 Dec 2011 22:26:57 +0000
(23:26 +0100)
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 <
[email protected]
>
Cc: Don Zickus <
[email protected]
>
Link:
http://lkml.kernel.org/r/20111207110612.GA3437@mwanda
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/nmi_selftest.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/nmi_selftest.c
b/arch/x86/kernel/nmi_selftest.c
index 1e42a23c1f2a766dbf3ced1a0db605d4b4a7b0a6..0d01a8ea4e1108acf427fa8bfcbf6e686d4b58ef 100644
(file)
--- a/
arch/x86/kernel/nmi_selftest.c
+++ b/
arch/x86/kernel/nmi_selftest.c
@@
-90,7
+90,7
@@
static void remote_ipi(void)
{
cpumask_copy(to_cpumask(nmi_ipi_mask), cpu_online_mask);
cpumask_clear_cpu(smp_processor_id(), to_cpumask(nmi_ipi_mask));
- if (!cpumask_empty(
nmi_ipi_mask
))
+ if (!cpumask_empty(
to_cpumask(nmi_ipi_mask)
))
test_nmi_ipi(to_cpumask(nmi_ipi_mask));
}