"extern inline" to "static inline" allows compile
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
@@ -293,7 +293,7 @@#ifdef __KERNEL__#ifndef __EXTERN_INLINE -#define __EXTERN_INLINE extern inline +#define __EXTERN_INLINE static inline#define __IO_EXTERN_INLINE#endif
Quoted 1 line · Matt Reppert
Comments?
Revert the asm/pci.h change instead.
r~
Quoted 5 lines · Richard Henderson
Quoted 1 line · Matt Reppert
Comments?
Revert the
asm/pci.hchange 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
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~
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.hthat 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.
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~