Skip to contentSkip to conversation

"extern inline" to "static inline" allows compile

PATCH In review Matt Reppert 4 participants 6 messages Dec 12, 2002 – Dec 13, 2002

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 "extern inline" to "static inline" allows compile

Hi,

I can't compile 2.5.51 on an EV56 without this. Tested, boots. There are a bunch of symbols in core_cia.h that break the build if they're extern inline because they're only defined in the header now. Make them static inline instead. (Important, since they're #defined to things like inb)

Comments?

Matt

include/asm-alpha/core_cia.h +1 -1
diff -Nru a/include/asm-alpha/core_cia.h b/include/asm-alpha/core_cia.h
@@ -293,7 +293,7 @@
 #ifdef __KERNEL__
 
 #ifndef __EXTERN_INLINE
-#define __EXTERN_INLINE extern inline
+#define __EXTERN_INLINE static inline
 #define __IO_EXTERN_INLINE
 #endif
 
#1 lore raw
Quoted 1 line · Matt Reppert

Comments?

Revert the asm/pci.h change instead.

r~

#2 lore raw
Quoted 5 lines · Richard Henderson
Quoted 1 line · Matt Reppert

Comments?

Revert the asm/pci.h change instead.

Is there a reason for the 'extern inline', to me it seems more natural to have 'static inline' ?

Regards,

Signature · 4 lines
  Steffen Persvold   |       Scali AS      
 mailto:[email protected] |  http://www.scali.com
Tel: (+47) 2262 8950 |   Olaf Helsets vei 6
Fax: (+47) 2262 8951 |   N0621 Oslo, NORWAY
#3 lore raw
Quoted 2 lines · Steffen Persvold

Is there a reason for the 'extern inline', to me it seems more natural to have 'static inline' ?

Yes. Examine the entire __EXTERN_INLINE structure with core_foo.[ch].

r~

#4 lore raw
In reply to Matt Reppert

In message <[email protected]> you write:

Quoted 9 lines

Hi,

I can't compile 2.5.51 on an EV56 without this. Tested, boots. There are a bunch of symbols in core_cia.h that break the build if they're extern inline because they're only defined in the header now. Make them static inline instead. (Important, since they're #defined to things like inb)

Comments?

This patch is simple, but not trivial, and since RTH wrote this, I'm assuming all those __EXTERN_INLINE's are defined and undefned in multiple places for a reason.

Richard?
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.

#5 lore raw
Quoted 3 lines · Rusty Russell

This patch is simple, but not trivial, and since RTH wrote this, I'm assuming all those __EXTERN_INLINE's are defined and undefned in multiple places for a reason.

Indeed.

Quoted 1 line

Richard?

Fixed properly by reverting the asm-alpha/pci.h patch and including asm/io.h in drivers/scsi/sr_ioctl.c.

r~