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-v32 | |
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-v32')
-rw-r--r-- | include/asm-cris/arch-v32/bitops.h | 10 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/byteorder.h | 4 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/checksum.h | 2 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/delay.h | 2 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/ide.h | 4 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/io.h | 6 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/system.h | 6 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/thread_info.h | 2 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/timex.h | 2 | ||||
-rw-r--r-- | include/asm-cris/arch-v32/uaccess.h | 4 |
10 files changed, 21 insertions, 21 deletions
diff --git a/include/asm-cris/arch-v32/bitops.h b/include/asm-cris/arch-v32/bitops.h index e40a58d3b862..147689d6b624 100644 --- a/include/asm-cris/arch-v32/bitops.h +++ b/include/asm-cris/arch-v32/bitops.h | |||
@@ -8,7 +8,7 @@ | |||
8 | * inverts all bits in the input. | 8 | * inverts all bits in the input. |
9 | */ | 9 | */ |
10 | 10 | ||
11 | extern inline unsigned long | 11 | static inline unsigned long |
12 | cris_swapnwbrlz(unsigned long w) | 12 | cris_swapnwbrlz(unsigned long w) |
13 | { | 13 | { |
14 | unsigned long res; | 14 | unsigned long res; |
@@ -20,7 +20,7 @@ cris_swapnwbrlz(unsigned long w) | |||
20 | return res; | 20 | return res; |
21 | } | 21 | } |
22 | 22 | ||
23 | extern inline unsigned long | 23 | static inline unsigned long |
24 | cris_swapwbrlz(unsigned long w) | 24 | cris_swapwbrlz(unsigned long w) |
25 | { | 25 | { |
26 | unsigned long res; | 26 | unsigned long res; |
@@ -36,7 +36,7 @@ cris_swapwbrlz(unsigned long w) | |||
36 | * Find First Zero in word. Undefined if no zero exist, so the caller should | 36 | * Find First Zero in word. Undefined if no zero exist, so the caller should |
37 | * check against ~0 first. | 37 | * check against ~0 first. |
38 | */ | 38 | */ |
39 | extern inline unsigned long | 39 | static inline unsigned long |
40 | ffz(unsigned long w) | 40 | ffz(unsigned long w) |
41 | { | 41 | { |
42 | return cris_swapnwbrlz(w); | 42 | return cris_swapnwbrlz(w); |
@@ -46,7 +46,7 @@ ffz(unsigned long w) | |||
46 | * Find First Set bit in word. Undefined if no 1 exist, so the caller | 46 | * Find First Set bit in word. Undefined if no 1 exist, so the caller |
47 | * should check against 0 first. | 47 | * should check against 0 first. |
48 | */ | 48 | */ |
49 | extern inline unsigned long | 49 | static inline unsigned long |
50 | __ffs(unsigned long w) | 50 | __ffs(unsigned long w) |
51 | { | 51 | { |
52 | return cris_swapnwbrlz(~w); | 52 | return cris_swapnwbrlz(~w); |
@@ -55,7 +55,7 @@ __ffs(unsigned long w) | |||
55 | /* | 55 | /* |
56 | * Find First Bit that is set. | 56 | * Find First Bit that is set. |
57 | */ | 57 | */ |
58 | extern inline unsigned long | 58 | static inline unsigned long |
59 | kernel_ffs(unsigned long w) | 59 | kernel_ffs(unsigned long w) |
60 | { | 60 | { |
61 | return w ? cris_swapwbrlz (w) + 1 : 0; | 61 | return w ? cris_swapwbrlz (w) + 1 : 0; |
diff --git a/include/asm-cris/arch-v32/byteorder.h b/include/asm-cris/arch-v32/byteorder.h index 74846ee6cf99..6ef8fb4a35f2 100644 --- a/include/asm-cris/arch-v32/byteorder.h +++ b/include/asm-cris/arch-v32/byteorder.h | |||
@@ -3,14 +3,14 @@ | |||
3 | 3 | ||
4 | #include <asm/types.h> | 4 | #include <asm/types.h> |
5 | 5 | ||
6 | extern __inline__ __const__ __u32 | 6 | static inline __const__ __u32 |
7 | ___arch__swab32(__u32 x) | 7 | ___arch__swab32(__u32 x) |
8 | { | 8 | { |
9 | __asm__ __volatile__ ("swapwb %0" : "=r" (x) : "0" (x)); | 9 | __asm__ __volatile__ ("swapwb %0" : "=r" (x) : "0" (x)); |
10 | return (x); | 10 | return (x); |
11 | } | 11 | } |
12 | 12 | ||
13 | extern __inline__ __const__ __u16 | 13 | static inline __const__ __u16 |
14 | ___arch__swab16(__u16 x) | 14 | ___arch__swab16(__u16 x) |
15 | { | 15 | { |
16 | __asm__ __volatile__ ("swapb %0" : "=r" (x) : "0" (x)); | 16 | __asm__ __volatile__ ("swapb %0" : "=r" (x) : "0" (x)); |
diff --git a/include/asm-cris/arch-v32/checksum.h b/include/asm-cris/arch-v32/checksum.h index a1d6b2a6cc44..97ef89efea62 100644 --- a/include/asm-cris/arch-v32/checksum.h +++ b/include/asm-cris/arch-v32/checksum.h | |||
@@ -9,7 +9,7 @@ | |||
9 | * checksum. Which means it would be necessary to split all those into | 9 | * checksum. Which means it would be necessary to split all those into |
10 | * 16-bit components and then add. | 10 | * 16-bit components and then add. |
11 | */ | 11 | */ |
12 | extern inline unsigned int | 12 | static inline unsigned int |
13 | csum_tcpudp_nofold(unsigned long saddr, unsigned long daddr, | 13 | csum_tcpudp_nofold(unsigned long saddr, unsigned long daddr, |
14 | unsigned short len, unsigned short proto, unsigned int sum) | 14 | unsigned short len, unsigned short proto, unsigned int sum) |
15 | { | 15 | { |
diff --git a/include/asm-cris/arch-v32/delay.h b/include/asm-cris/arch-v32/delay.h index f36f7f760e89..b6e941e637de 100644 --- a/include/asm-cris/arch-v32/delay.h +++ b/include/asm-cris/arch-v32/delay.h | |||
@@ -1,7 +1,7 @@ | |||
1 | #ifndef _ASM_CRIS_ARCH_DELAY_H | 1 | #ifndef _ASM_CRIS_ARCH_DELAY_H |
2 | #define _ASM_CRIS_ARCH_DELAY_H | 2 | #define _ASM_CRIS_ARCH_DELAY_H |
3 | 3 | ||
4 | extern __inline__ void | 4 | static inline void |
5 | __delay(int loops) | 5 | __delay(int loops) |
6 | { | 6 | { |
7 | __asm__ __volatile__ ( | 7 | __asm__ __volatile__ ( |
diff --git a/include/asm-cris/arch-v32/ide.h b/include/asm-cris/arch-v32/ide.h index 24f5604f566a..6590f657500d 100644 --- a/include/asm-cris/arch-v32/ide.h +++ b/include/asm-cris/arch-v32/ide.h | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | #define MAX_HWIFS 4 | 27 | #define MAX_HWIFS 4 |
28 | 28 | ||
29 | extern __inline__ int ide_default_irq(unsigned long base) | 29 | static inline int ide_default_irq(unsigned long base) |
30 | { | 30 | { |
31 | /* all IDE busses share the same IRQ, | 31 | /* all IDE busses share the same IRQ, |
32 | * this has the side-effect that ide-probe.c will cluster our 4 interfaces | 32 | * this has the side-effect that ide-probe.c will cluster our 4 interfaces |
@@ -36,7 +36,7 @@ extern __inline__ int ide_default_irq(unsigned long base) | |||
36 | return ATA_INTR_VECT; | 36 | return ATA_INTR_VECT; |
37 | } | 37 | } |
38 | 38 | ||
39 | extern __inline__ unsigned long ide_default_io_base(int index) | 39 | static inline unsigned long ide_default_io_base(int index) |
40 | { | 40 | { |
41 | reg_ata_rw_ctrl2 ctrl2 = {.sel = index}; | 41 | reg_ata_rw_ctrl2 ctrl2 = {.sel = index}; |
42 | /* we have no real I/O base address per interface, since all go through the | 42 | /* we have no real I/O base address per interface, since all go through the |
diff --git a/include/asm-cris/arch-v32/io.h b/include/asm-cris/arch-v32/io.h index 4c80263ec634..043c9ce5294e 100644 --- a/include/asm-cris/arch-v32/io.h +++ b/include/asm-cris/arch-v32/io.h | |||
@@ -35,7 +35,7 @@ extern struct crisv32_iopin crisv32_led2_red; | |||
35 | extern struct crisv32_iopin crisv32_led3_green; | 35 | extern struct crisv32_iopin crisv32_led3_green; |
36 | extern struct crisv32_iopin crisv32_led3_red; | 36 | extern struct crisv32_iopin crisv32_led3_red; |
37 | 37 | ||
38 | extern inline void crisv32_io_set(struct crisv32_iopin* iopin, | 38 | static inline void crisv32_io_set(struct crisv32_iopin* iopin, |
39 | int val) | 39 | int val) |
40 | { | 40 | { |
41 | if (val) | 41 | if (val) |
@@ -44,7 +44,7 @@ extern inline void crisv32_io_set(struct crisv32_iopin* iopin, | |||
44 | *iopin->port->data &= ~iopin->bit; | 44 | *iopin->port->data &= ~iopin->bit; |
45 | } | 45 | } |
46 | 46 | ||
47 | extern inline void crisv32_io_set_dir(struct crisv32_iopin* iopin, | 47 | static inline void crisv32_io_set_dir(struct crisv32_iopin* iopin, |
48 | enum crisv32_io_dir dir) | 48 | enum crisv32_io_dir dir) |
49 | { | 49 | { |
50 | if (dir == crisv32_io_dir_in) | 50 | if (dir == crisv32_io_dir_in) |
@@ -53,7 +53,7 @@ extern inline void crisv32_io_set_dir(struct crisv32_iopin* iopin, | |||
53 | *iopin->port->oe |= iopin->bit; | 53 | *iopin->port->oe |= iopin->bit; |
54 | } | 54 | } |
55 | 55 | ||
56 | extern inline int crisv32_io_rd(struct crisv32_iopin* iopin) | 56 | static inline int crisv32_io_rd(struct crisv32_iopin* iopin) |
57 | { | 57 | { |
58 | return ((*iopin->port->data_in & iopin->bit) ? 1 : 0); | 58 | return ((*iopin->port->data_in & iopin->bit) ? 1 : 0); |
59 | } | 59 | } |
diff --git a/include/asm-cris/arch-v32/system.h b/include/asm-cris/arch-v32/system.h index b9afbb95e0bb..a3d75d581e2f 100644 --- a/include/asm-cris/arch-v32/system.h +++ b/include/asm-cris/arch-v32/system.h | |||
@@ -4,7 +4,7 @@ | |||
4 | #include <linux/config.h> | 4 | #include <linux/config.h> |
5 | 5 | ||
6 | /* Read the CPU version register. */ | 6 | /* Read the CPU version register. */ |
7 | extern inline unsigned long rdvr(void) | 7 | static inline unsigned long rdvr(void) |
8 | { | 8 | { |
9 | unsigned char vr; | 9 | unsigned char vr; |
10 | 10 | ||
@@ -15,7 +15,7 @@ extern inline unsigned long rdvr(void) | |||
15 | #define cris_machine_name "crisv32" | 15 | #define cris_machine_name "crisv32" |
16 | 16 | ||
17 | /* Read the user-mode stack pointer. */ | 17 | /* Read the user-mode stack pointer. */ |
18 | extern inline unsigned long rdusp(void) | 18 | static inline unsigned long rdusp(void) |
19 | { | 19 | { |
20 | unsigned long usp; | 20 | unsigned long usp; |
21 | 21 | ||
@@ -24,7 +24,7 @@ extern inline unsigned long rdusp(void) | |||
24 | } | 24 | } |
25 | 25 | ||
26 | /* Read the current stack pointer. */ | 26 | /* Read the current stack pointer. */ |
27 | extern inline unsigned long rdsp(void) | 27 | static inline unsigned long rdsp(void) |
28 | { | 28 | { |
29 | unsigned long sp; | 29 | unsigned long sp; |
30 | 30 | ||
diff --git a/include/asm-cris/arch-v32/thread_info.h b/include/asm-cris/arch-v32/thread_info.h index a7a182307da0..d6936956a3c6 100644 --- a/include/asm-cris/arch-v32/thread_info.h +++ b/include/asm-cris/arch-v32/thread_info.h | |||
@@ -2,7 +2,7 @@ | |||
2 | #define _ASM_CRIS_ARCH_THREAD_INFO_H | 2 | #define _ASM_CRIS_ARCH_THREAD_INFO_H |
3 | 3 | ||
4 | /* Return a thread_info struct. */ | 4 | /* Return a thread_info struct. */ |
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 | 8 | ||
diff --git a/include/asm-cris/arch-v32/timex.h b/include/asm-cris/arch-v32/timex.h index 4d0fd23b21e9..5a4aa285d5fd 100644 --- a/include/asm-cris/arch-v32/timex.h +++ b/include/asm-cris/arch-v32/timex.h | |||
@@ -22,7 +22,7 @@ | |||
22 | 22 | ||
23 | extern unsigned long get_ns_in_jiffie(void); | 23 | extern 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-v32/uaccess.h b/include/asm-cris/arch-v32/uaccess.h index 055a0bdbe835..6b207f1b6622 100644 --- a/include/asm-cris/arch-v32/uaccess.h +++ b/include/asm-cris/arch-v32/uaccess.h | |||
@@ -93,7 +93,7 @@ | |||
93 | * bytes copied if we hit a null byte | 93 | * bytes copied if we hit a null byte |
94 | * (without the null byte) | 94 | * (without the null byte) |
95 | */ | 95 | */ |
96 | extern inline long | 96 | static inline long |
97 | __do_strncpy_from_user(char *dst, const char *src, long count) | 97 | __do_strncpy_from_user(char *dst, const char *src, long count) |
98 | { | 98 | { |
99 | long res; | 99 | long res; |
@@ -695,7 +695,7 @@ __do_strncpy_from_user(char *dst, const char *src, long count) | |||
695 | * or 0 for error. Return a value greater than N if too long. | 695 | * or 0 for error. Return a value greater than N if too long. |
696 | */ | 696 | */ |
697 | 697 | ||
698 | extern inline long | 698 | static inline long |
699 | strnlen_user(const char *s, long n) | 699 | strnlen_user(const char *s, long n) |
700 | { | 700 | { |
701 | long res, tmp1; | 701 | long res, tmp1; |