Re: [patch 7/7] Make "inline" no longer mandatory for gcc 4.x

Arjan van de Ven
2006-01-07T19:44:52Z

On Sat, 2006-01-07 at 14:05 -0500, Kurt Wall wrote:

>
> This patch was applied on top of the previous 6 in the series from
> Arjan. NB that it _did_ build with 3.4.4 and -Os enabled. I'm
> rechecking, but this is the second time I've encountered this failure.

Does this fix it?

Signed-off-by: Arjan van de Ven <arjan@infradead.org>

--- linux-2.6.15/include/asm-x86_64/fixmap.h~ 2006-01-07 20:42:31.000000000 +0100
+++ linux-2.6.15/include/asm-x86_64/fixmap.h 2006-01-07 20:42:31.000000000 +0100
@@ -76,7 +76,7 @@
* directly without translation, 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,