Re: [PATCH next&mainline] oprofile: fix build when CONFIG_PM isdisabled

From: Ingo Molnar
Date: Wed Sep 01 2010 - 12:52:31 EST



* Randy Dunlap <randy.dunlap@xxxxxxxxxx> wrote:

> From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
>
> Using do/while for a function-returning-a-value does not
> make gcc happy, so change it to a static inline function.
> (happens when CONFIG_PM is not enabled)
>
> arch/x86/oprofile/nmi_int.c:784: error: expected expression before 'do'

Yeah, i reported this to Robert a few hours ago, with the same suggested
solution.

Thanks,

Ingo
--
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/