Commit 29fc7c5a authored by Will Deacon's avatar Will Deacon Committed by Linus Torvalds
Browse files

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: default avatarWill Deacon <>
Cc: Pekka Enberg <>
Reviewed-by: default avatarMichel Lespinasse <>
Cc: Ingo Molnar <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent eedce141
......@@ -24,6 +24,7 @@
#include <linux/compiler.h>
#include <linux/rbtree.h>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment