public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Is extern inline -> static inline OK?
@ 2004-08-06  0:39 Tim Bird
  2004-08-06  0:58 ` H. Peter Anvin
       [not found] ` <20040806070027.GA20642@twiddle.net>
  0 siblings, 2 replies; 8+ messages in thread
From: Tim Bird @ 2004-08-06  0:39 UTC (permalink / raw)
  To: linux kernel; +Cc: rth

Pardon my ignorance...

Under what conditions is it NOT OK to convert "extern inline"
to "static inline"?

Linus once wrote:
>  - "static inline" means "we have to have this function, if you use it
>    but don't inline it, then make a static version of it in this
>    compilation unit"
> 
>  - "extern inline" means "I actually _have_ an extern for this function,
>    but if you want to inline it, here's the inline-version"
> 
> ... we should just convert
> all current users of "extern inline" to "static inline".

But Richard Henderson rejected (in 2002) the following patch (excerpt):

-#define __EXTERN_INLINE extern inline
+#define __EXTERN_INLINE static inline

presumably because the exact semantics of extern inline were
required.  I can only find __EXTERN_INLINE in the alpha
architecture.  Is the requirement to use 'extern' rather
than 'static' unique to alpha?

Thanks for any illumination on this.

=============================
Tim Bird
Architecture Group Co-Chair, CE Linux Forum
Senior Staff Engineer, Sony Electronics
E-mail: tim.bird@am.sony.com
=============================

^ permalink raw reply	[flat|nested] 8+ messages in thread
[parent not found: <2q0Wb-2Tc-17@gated-at.bofh.it>]

end of thread, other threads:[~2004-08-07  2:41 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-06  0:39 Is extern inline -> static inline OK? Tim Bird
2004-08-06  0:58 ` H. Peter Anvin
2004-08-06 22:29   ` Tim Bird
2004-08-06 22:29     ` H. Peter Anvin
     [not found] ` <20040806070027.GA20642@twiddle.net>
2004-08-06 18:57   ` Tim Bird
2004-08-07  2:41     ` Richard Henderson
     [not found] <2q0Wb-2Tc-17@gated-at.bofh.it>
     [not found] ` <2q1pe-3hq-17@gated-at.bofh.it>
     [not found]   ` <2qlo1-wO-37@gated-at.bofh.it>
2004-08-06 23:26     ` Andi Kleen
2004-08-07  1:26       ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox