[mmotm][PATCH] fix arch/ia64/kernel/msi_ia64.c warning

From: KOSAKI Motohiro
Date: Sun Nov 30 2008 - 22:04:38 EST


fix following warning.

arch/ia64/kernel/msi_ia64.c:145: warning: initialization from incompatible pointer type

Signed-off-by: KOSAKI Motohiro <kosaki.motohiro@xxxxxxxxxxxxxx>
CC: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
CC: Mike Travis <travis@xxxxxxx>
CC: "Luck, Tony" <tony.luck@xxxxxxxxx>
---
arch/ia64/kernel/msi_ia64.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)

Index: b/arch/ia64/kernel/msi_ia64.c
===================================================================
--- a/arch/ia64/kernel/msi_ia64.c
+++ b/arch/ia64/kernel/msi_ia64.c
@@ -49,11 +49,12 @@
static struct irq_chip ia64_msi_chip;

#ifdef CONFIG_SMP
-static void ia64_set_msi_irq_affinity(unsigned int irq, cpumask_t cpu_mask)
+static void ia64_set_msi_irq_affinity(unsigned int irq,
+ const cpumask_t *cpu_mask)
{
struct msi_msg msg;
u32 addr, data;
- int cpu = first_cpu(cpu_mask);
+ int cpu = first_cpu(*cpu_mask);

if (!cpu_online(cpu))
return;



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/