diff options
author | Adrian Bunk <bunk@stusta.de> | 2005-11-07 03:58:44 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-07 10:53:30 -0500 |
commit | d9b5444eeb3a663ca4a625878b1421c9e9b18e8b (patch) | |
tree | 6cc32711116977944043c54e0c196c75358916be /include/asm-cris/arch-v10 | |
parent | 5f9c3cbcd5d41be597aef9c0ff64ebfc8a91cd6f (diff) |
[PATCH] cris: "extern inline" -> "static inline"
"extern inline" doesn't make much sense.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Acked-by: Mikael Starvik <starvik@axis.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-cris/arch-v10')
-rw-r--r-- | include/asm-cris/arch-v10/byteorder.h | 4 | ||||
-rw-r--r-- | include/asm-cris/arch-v10/checksum.h | 2 | ||||
-rw-r--r-- | include/asm-cris/arch-v10/delay.h | 2 | ||||
-rw-r--r-- | include/asm-cris/arch-v10/ide.h | 8 | ||||
-rw-r--r-- | include/asm-cris/arch-v10/system.h | 8 | ||||
-rw-r--r-- | include/asm-cris/arch-v10/thread_info.h | 2 | ||||
-rw-r--r-- | include/asm-cris/arch-v10/timex.h | 2 | ||||
-rw-r--r-- | include/asm-cris/arch-v10/uaccess.h | 4 |
8 files changed, 16 insertions, 16 deletions
diff --git a/include/asm-cris/arch-v10/byteorder.h b/include/asm-cris/arch-v10/byteorder.h index e24465d1f40d..255b646b7fa8 100644 --- a/include/asm-cris/arch-v10/byteorder.h +++ b/include/asm-cris/arch-v10/byteorder.h | |||
@@ -9,14 +9,14 @@ | |||
9 | * them together into ntohl etc. | 9 | * them together into ntohl etc. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | extern __inline__ __attribute_const__ __u32 ___arch__swab32(__u32 x) | 12 | static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) |
13 | { | 13 | { |
14 | __asm__ ("swapwb %0" : "=r" (x) : "0" (x)); | 14 | __asm__ ("swapwb %0" : "=r" (x) : "0" (x)); |
15 | 15 | ||
16 | return(x); | 16 | return(x); |
17 | } | 17 | } |
18 | 18 | ||
19 | extern __inline__ __attribute_const__ __u16 ___arch__swab16(__u16 x) | 19 | static inline __attribute_const__ __u16 ___arch__swab16(__u16 x) |
20 | { | 20 | { |
21 | __asm__ ("swapb %0" : "=r" (x) : "0" (x)); | 21 | __asm__ ("swapb %0" : "=r" (x) : "0" (x)); |
22 | 22 | ||
diff --git a/include/asm-cris/arch-v10/checksum.h b/include/asm-cris/arch-v10/checksum.h index fde1d00aaa90..633f234f336b 100644 --- a/include/asm-cris/arch-v10/checksum.h +++ b/include/asm-cris/arch-v10/checksum.h | |||
@@ -8,7 +8,7 @@ | |||
8 | * to split all of those into 16-bit components, then add. | 8 | * to split all of those into 16-bit components, then add. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | extern inline unsigned int | 11 | static inline unsigned int |
12 | csum_tcpudp_nofold(unsigned long saddr, unsigned long daddr, unsigned short len, | 12 | csum_tcpudp_nofold(unsigned long saddr, unsigned long daddr, unsigned short len, |
13 | unsigned short proto, unsigned int sum) | 13 | unsigned short proto, unsigned int sum) |
14 | { | 14 | { |
diff --git a/include/asm-cris/arch-v10/delay.h b/include/asm-cris/arch-v10/delay.h index cfedae0d2f53..39481f6e0c30 100644 --- a/include/asm-cris/arch-v10/delay.h +++ b/include/asm-cris/arch-v10/delay.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _CRIS_ARCH_DELAY_H | 1 | #ifndef _CRIS_ARCH_DELAY_H |
2 | #define _CRIS_ARCH_DELAY_H | 2 | #define _CRIS_ARCH_DELAY_H |
3 | 3 | ||
4 | extern __inline__ void __delay(int loops) | 4 | static inline void __delay(int loops) |
5 | { | 5 | { |
6 | __asm__ __volatile__ ( | 6 | __asm__ __volatile__ ( |
7 | "move.d %0,$r9\n\t" | 7 | "move.d %0,$r9\n\t" |
diff --git a/include/asm-cris/arch-v10/ide.h b/include/asm-cris/arch-v10/ide.h index 8cf2d7cb22ac..78b301ed7b12 100644 --- a/include/asm-cris/arch-v10/ide.h +++ b/include/asm-cris/arch-v10/ide.h | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | #define MAX_HWIFS 4 | 26 | #define MAX_HWIFS 4 |
27 | 27 | ||
28 | extern __inline__ int ide_default_irq(unsigned long base) | 28 | static inline int ide_default_irq(unsigned long base) |
29 | { | 29 | { |
30 | /* all IDE busses share the same IRQ, number 4. | 30 | /* all IDE busses share the same IRQ, number 4. |
31 | * this has the side-effect that ide-probe.c will cluster our 4 interfaces | 31 | * this has the side-effect that ide-probe.c will cluster our 4 interfaces |
@@ -35,7 +35,7 @@ extern __inline__ int ide_default_irq(unsigned long base) | |||
35 | return 4; | 35 | return 4; |
36 | } | 36 | } |
37 | 37 | ||
38 | extern __inline__ unsigned long ide_default_io_base(int index) | 38 | static inline unsigned long ide_default_io_base(int index) |
39 | { | 39 | { |
40 | /* we have no real I/O base address per interface, since all go through the | 40 | /* we have no real I/O base address per interface, since all go through the |
41 | * same register. but in a bitfield in that register, we have the i/f number. | 41 | * same register. but in a bitfield in that register, we have the i/f number. |
@@ -54,7 +54,7 @@ extern __inline__ unsigned long ide_default_io_base(int index) | |||
54 | * of the ide_default_io_base call above. ctrl_port will be 0, but that is don't care for us. | 54 | * of the ide_default_io_base call above. ctrl_port will be 0, but that is don't care for us. |
55 | */ | 55 | */ |
56 | 56 | ||
57 | extern __inline__ void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_port, unsigned long ctrl_port, int *irq) | 57 | static inline void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_port, unsigned long ctrl_port, int *irq) |
58 | { | 58 | { |
59 | int i; | 59 | int i; |
60 | 60 | ||
@@ -77,7 +77,7 @@ extern __inline__ void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_por | |||
77 | hw->io_ports[IDE_IRQ_OFFSET] = 0; | 77 | hw->io_ports[IDE_IRQ_OFFSET] = 0; |
78 | } | 78 | } |
79 | 79 | ||
80 | extern __inline__ void ide_init_default_hwifs(void) | 80 | static inline void ide_init_default_hwifs(void) |
81 | { | 81 | { |
82 | hw_regs_t hw; | 82 | hw_regs_t hw; |
83 | int index; | 83 | int index; |
diff --git a/include/asm-cris/arch-v10/system.h b/include/asm-cris/arch-v10/system.h index 6cc35642b8ab..1ac7b639b1b0 100644 --- a/include/asm-cris/arch-v10/system.h +++ b/include/asm-cris/arch-v10/system.h | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | /* read the CPU version register */ | 6 | /* read the CPU version register */ |
7 | 7 | ||
8 | extern inline unsigned long rdvr(void) { | 8 | static inline unsigned long rdvr(void) { |
9 | unsigned char vr; | 9 | unsigned char vr; |
10 | __asm__ volatile ("move $vr,%0" : "=rm" (vr)); | 10 | __asm__ volatile ("move $vr,%0" : "=rm" (vr)); |
11 | return vr; | 11 | return vr; |
@@ -15,7 +15,7 @@ extern inline unsigned long rdvr(void) { | |||
15 | 15 | ||
16 | /* read/write the user-mode stackpointer */ | 16 | /* read/write the user-mode stackpointer */ |
17 | 17 | ||
18 | extern inline unsigned long rdusp(void) { | 18 | static inline unsigned long rdusp(void) { |
19 | unsigned long usp; | 19 | unsigned long usp; |
20 | __asm__ __volatile__("move $usp,%0" : "=rm" (usp)); | 20 | __asm__ __volatile__("move $usp,%0" : "=rm" (usp)); |
21 | return usp; | 21 | return usp; |
@@ -26,13 +26,13 @@ extern inline unsigned long rdusp(void) { | |||
26 | 26 | ||
27 | /* read the current stackpointer */ | 27 | /* read the current stackpointer */ |
28 | 28 | ||
29 | extern inline unsigned long rdsp(void) { | 29 | static inline unsigned long rdsp(void) { |
30 | unsigned long sp; | 30 | unsigned long sp; |
31 | __asm__ __volatile__("move.d $sp,%0" : "=rm" (sp)); | 31 | __asm__ __volatile__("move.d $sp,%0" : "=rm" (sp)); |
32 | return sp; | 32 | return sp; |
33 | } | 33 | } |
34 | 34 | ||
35 | extern inline unsigned long _get_base(char * addr) | 35 | static inline unsigned long _get_base(char * addr) |
36 | { | 36 | { |
37 | return 0; | 37 | return 0; |
38 | } | 38 | } |
diff --git a/include/asm-cris/arch-v10/thread_info.h b/include/asm-cris/arch-v10/thread_info.h index 357f5df0c907..218f4152d3e5 100644 --- a/include/asm-cris/arch-v10/thread_info.h +++ b/include/asm-cris/arch-v10/thread_info.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define _ASM_ARCH_THREAD_INFO_H | 2 | #define _ASM_ARCH_THREAD_INFO_H |
3 | 3 | ||
4 | /* how to get the thread information struct from C */ | 4 | /* how to get the thread information struct from C */ |
5 | extern inline struct thread_info *current_thread_info(void) | 5 | static inline struct thread_info *current_thread_info(void) |
6 | { | 6 | { |
7 | struct thread_info *ti; | 7 | struct thread_info *ti; |
8 | __asm__("and.d $sp,%0; ":"=r" (ti) : "0" (~8191UL)); | 8 | __asm__("and.d $sp,%0; ":"=r" (ti) : "0" (~8191UL)); |
diff --git a/include/asm-cris/arch-v10/timex.h b/include/asm-cris/arch-v10/timex.h index ecfc553c06a5..e48447d94faf 100644 --- a/include/asm-cris/arch-v10/timex.h +++ b/include/asm-cris/arch-v10/timex.h | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | unsigned long get_ns_in_jiffie(void); | 23 | unsigned long get_ns_in_jiffie(void); |
24 | 24 | ||
25 | extern inline unsigned long get_us_in_jiffie_highres(void) | 25 | static inline unsigned long get_us_in_jiffie_highres(void) |
26 | { | 26 | { |
27 | return get_ns_in_jiffie()/1000; | 27 | return get_ns_in_jiffie()/1000; |
28 | } | 28 | } |
diff --git a/include/asm-cris/arch-v10/uaccess.h b/include/asm-cris/arch-v10/uaccess.h index 787d2e60c83c..65b02d9b605a 100644 --- a/include/asm-cris/arch-v10/uaccess.h +++ b/include/asm-cris/arch-v10/uaccess.h | |||
@@ -87,7 +87,7 @@ | |||
87 | * bytes copied if we hit a null byte | 87 | * bytes copied if we hit a null byte |
88 | * (without the null byte) | 88 | * (without the null byte) |
89 | */ | 89 | */ |
90 | extern inline long | 90 | static inline long |
91 | __do_strncpy_from_user(char *dst, const char *src, long count) | 91 | __do_strncpy_from_user(char *dst, const char *src, long count) |
92 | { | 92 | { |
93 | long res; | 93 | long res; |
@@ -602,7 +602,7 @@ __do_strncpy_from_user(char *dst, const char *src, long count) | |||
602 | * or 0 for error. Return a value greater than N if too long. | 602 | * or 0 for error. Return a value greater than N if too long. |
603 | */ | 603 | */ |
604 | 604 | ||
605 | extern inline long | 605 | static inline long |
606 | strnlen_user(const char *s, long n) | 606 | strnlen_user(const char *s, long n) |
607 | { | 607 | { |
608 | long res, tmp1; | 608 | long res, tmp1; |