lkml.org 
[lkml]   [2003]   [Mar]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Oops in 2.5.64
Hi,

On Thu, Mar 06, 2003 at 12:14:57AM -0800, Andrew Morton wrote:
> Cannot we just stick:
>
> #define inline __inline__ __attribute__((always_inline))
>
> in kernel.h?

I second this, because that's how we actually use this keyword in
the kernel. We don't mean "please inline, if you can" but
actually "inline it, or I'll force you harder!".

It doesn't look like at first glance, but it actually is the
cleanest solution for recent GCCs.

Even better would be a "-Winline-limit=X" to warn for the cases,
where we should review the tradeoff.

Regards

Ingo Oeser
--
Marketing ist die Kunst, Leuten Sachen zu verkaufen, die sie
nicht brauchen, mit Geld, was sie nicht haben, um Leute zu
beeindrucken, die sie nicht moegen.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.025 / U:3.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site