Commit b1b58955 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] gcc-3.5: fixmap.h fix

Not strictly needed, since we're forcing `inline' to always_inline, but it's
good for documentation purposes - This function needs the always_inline
otherwise you get a link error when the compile time test is not optimized
away.
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0e44d282
...@@ -125,7 +125,7 @@ extern void __this_fixmap_does_not_exist(void); ...@@ -125,7 +125,7 @@ extern void __this_fixmap_does_not_exist(void);
* directly without tranlation, we catch the bug with a NULL-deference * directly without tranlation, we catch the bug with a NULL-deference
* kernel oops. Illegal ranges of incoming indices are caught too. * kernel oops. Illegal ranges of incoming indices are caught too.
*/ */
static inline unsigned long fix_to_virt(const unsigned int idx) static __always_inline unsigned long fix_to_virt(const unsigned int idx)
{ {
/* /*
* this branch gets completely eliminated after inlining, * this branch gets completely eliminated after inlining,
......
Markdown is supported
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