]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbtree: include linux/compiler.h for definition of __always_inline
authorWill Deacon <will.deacon@arm.com>
Thu, 25 Oct 2012 01:13:54 +0000 (12:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 25 Oct 2012 01:13:54 +0000 (12:13 +1100)
commit8265acb736999e5561ff0f87abb2821fd49e2390
tree48f0f92b39120854386ae21865e0801d5756c7f4
parenta828247e3e33ea844bfbefbeb8409e06d3f11ef9
rbtree: include linux/compiler.h for definition of __always_inline

rb_erase_augmented() is a static function annotated with __always_inline.
This causes a compile failure when attempting to use the rbtree
implementation as a library (e.g.  kvm tool):

rbtree_augmented.h:125:24: error: expected `=', `,', `;', `asm' or `__attribute__' before `void'

Include linux/compiler.h in rbtree_augmented.h so that the __always_inline
macro is resolved correctly.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Cc: Pekka Enberg <penberg@kernel.org>
Reviewed-by: Michel Lespinasse <walken@google.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/rbtree_augmented.h