]> git.hungrycats.org Git - linux/commitdiff
[PATCH] gcc-3.5: fixmap.h fix
authorAndi Kleen <ak@muc.de>
Mon, 23 Aug 2004 05:43:38 +0000 (22:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 23 Aug 2004 05:43:38 +0000 (22:43 -0700)
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: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
include/asm-i386/fixmap.h

index 07d4c64ae02c721889272647d170a7f0191b0c26..791faa169b8367cdac2a87696957921fcd20f0aa 100644 (file)
@@ -125,7 +125,7 @@ extern void __this_fixmap_does_not_exist(void);
  * directly without tranlation, we catch the bug with a NULL-deference
  * 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,