Re: [PATCH V2] kernel.h: Convert rounding macros to statementexpressions, add ADD_MOD

From: Andrew Morton
Date: Mon Apr 05 2010 - 18:14:22 EST

On Mon, 29 Mar 2010 15:18:34 -0700
Joe Perches <joe@xxxxxxxxxxx> wrote:

> Convert rounding macros to statement expressions
> so arguments are only evaluated once.
> Add kernel-doc to rounding macros
> Add ADD_MOD statement expression for "(x + y) % y"

In file included from /usr/src/devel/arch/x86/include/asm/cpumask.h:4,
from /usr/src/devel/arch/x86/include/asm/msr.h:18,
from /usr/src/devel/arch/x86/include/asm/processor.h:21,
from /usr/src/devel/arch/x86/include/asm/atomic.h:6,
from include/linux/crypto.h:20,
from arch/x86/kernel/asm-offsets_64.c:8,
from arch/x86/kernel/asm-offsets.c:4:
include/linux/cpumask.h:13: error: braced-group within expression allowed only inside a function
include/linux/cpumask.h:13: warning: no semicolon at end of struct or union
include/linux/cpumask.h:13: error: syntax error before numeric constant
include/linux/cpumask.h:13: warning: type defaults to 'int' in declaration of 'cpumask_t'
include/linux/cpumask.h:13: warning: data definition has no type or storage class

Some sort of dependency tangle I guess.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at