RE: [PATCH] ia64: Fix IOSAPIC delivery mode setting

From: Luck, Tony <tony.luck_at_intel.com>
Date: 2007-11-07 11:13:54
+	if (smp_int_redirect & SMP_IRQ_REDIRECTION)

This breaks the build on CONFIG_SMP=n configurations (neither
smp_int_redirect nor SMP_IRQ_REDIRECTION is defined).

Perhaps you could have:

#ifdef CONFIG_SMP
static inline char
choose_dmode(void)
{
	if (smp_int_redirect & SMP_IRQ_REDIRECTION)
		return IOSAPIC_LOWEST_PRIORITY;
	else
		return IOSAPIC_FIXED:
}
#else
static inline char
choose_dmode(void)
{
	return IOSAPIC_FIXED;
}
#endif

...

	dmode = choose_dmode();

Unless you can see some less invasive syntax.

-Tony
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Nov 07 11:14:25 2007

This archive was generated by hypermail 2.1.8 : 2007-11-07 11:14:40 EST