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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



+	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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Sparc Linux]     [DCCP]     [Linux ARM]     [Yosemite News]     [Linux SCSI]     [Linux x86_64]     [Linux for Ham Radio]

  Powered by Linux