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 | |
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')
34 files changed, 130 insertions, 130 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; |
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; |
diff --git a/include/asm-cris/atomic.h b/include/asm-cris/atomic.h index 70605b09e8b7..8c2e78304523 100644 --- a/include/asm-cris/atomic.h +++ b/include/asm-cris/atomic.h | |||
@@ -20,7 +20,7 @@ typedef struct { volatile int counter; } atomic_t; | |||
20 | 20 | ||
21 | /* These should be written in asm but we do it in C for now. */ | 21 | /* These should be written in asm but we do it in C for now. */ |
22 | 22 | ||
23 | extern __inline__ void atomic_add(int i, volatile atomic_t *v) | 23 | static inline void atomic_add(int i, volatile atomic_t *v) |
24 | { | 24 | { |
25 | unsigned long flags; | 25 | unsigned long flags; |
26 | cris_atomic_save(v, flags); | 26 | cris_atomic_save(v, flags); |
@@ -28,7 +28,7 @@ extern __inline__ void atomic_add(int i, volatile atomic_t *v) | |||
28 | cris_atomic_restore(v, flags); | 28 | cris_atomic_restore(v, flags); |
29 | } | 29 | } |
30 | 30 | ||
31 | extern __inline__ void atomic_sub(int i, volatile atomic_t *v) | 31 | static inline void atomic_sub(int i, volatile atomic_t *v) |
32 | { | 32 | { |
33 | unsigned long flags; | 33 | unsigned long flags; |
34 | cris_atomic_save(v, flags); | 34 | cris_atomic_save(v, flags); |
@@ -36,7 +36,7 @@ extern __inline__ void atomic_sub(int i, volatile atomic_t *v) | |||
36 | cris_atomic_restore(v, flags); | 36 | cris_atomic_restore(v, flags); |
37 | } | 37 | } |
38 | 38 | ||
39 | extern __inline__ int atomic_add_return(int i, volatile atomic_t *v) | 39 | static inline int atomic_add_return(int i, volatile atomic_t *v) |
40 | { | 40 | { |
41 | unsigned long flags; | 41 | unsigned long flags; |
42 | int retval; | 42 | int retval; |
@@ -48,7 +48,7 @@ extern __inline__ int atomic_add_return(int i, volatile atomic_t *v) | |||
48 | 48 | ||
49 | #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0) | 49 | #define atomic_add_negative(a, v) (atomic_add_return((a), (v)) < 0) |
50 | 50 | ||
51 | extern __inline__ int atomic_sub_return(int i, volatile atomic_t *v) | 51 | static inline int atomic_sub_return(int i, volatile atomic_t *v) |
52 | { | 52 | { |
53 | unsigned long flags; | 53 | unsigned long flags; |
54 | int retval; | 54 | int retval; |
@@ -58,7 +58,7 @@ extern __inline__ int atomic_sub_return(int i, volatile atomic_t *v) | |||
58 | return retval; | 58 | return retval; |
59 | } | 59 | } |
60 | 60 | ||
61 | extern __inline__ int atomic_sub_and_test(int i, volatile atomic_t *v) | 61 | static inline int atomic_sub_and_test(int i, volatile atomic_t *v) |
62 | { | 62 | { |
63 | int retval; | 63 | int retval; |
64 | unsigned long flags; | 64 | unsigned long flags; |
@@ -68,7 +68,7 @@ extern __inline__ int atomic_sub_and_test(int i, volatile atomic_t *v) | |||
68 | return retval; | 68 | return retval; |
69 | } | 69 | } |
70 | 70 | ||
71 | extern __inline__ void atomic_inc(volatile atomic_t *v) | 71 | static inline void atomic_inc(volatile atomic_t *v) |
72 | { | 72 | { |
73 | unsigned long flags; | 73 | unsigned long flags; |
74 | cris_atomic_save(v, flags); | 74 | cris_atomic_save(v, flags); |
@@ -76,7 +76,7 @@ extern __inline__ void atomic_inc(volatile atomic_t *v) | |||
76 | cris_atomic_restore(v, flags); | 76 | cris_atomic_restore(v, flags); |
77 | } | 77 | } |
78 | 78 | ||
79 | extern __inline__ void atomic_dec(volatile atomic_t *v) | 79 | static inline void atomic_dec(volatile atomic_t *v) |
80 | { | 80 | { |
81 | unsigned long flags; | 81 | unsigned long flags; |
82 | cris_atomic_save(v, flags); | 82 | cris_atomic_save(v, flags); |
@@ -84,7 +84,7 @@ extern __inline__ void atomic_dec(volatile atomic_t *v) | |||
84 | cris_atomic_restore(v, flags); | 84 | cris_atomic_restore(v, flags); |
85 | } | 85 | } |
86 | 86 | ||
87 | extern __inline__ int atomic_inc_return(volatile atomic_t *v) | 87 | static inline int atomic_inc_return(volatile atomic_t *v) |
88 | { | 88 | { |
89 | unsigned long flags; | 89 | unsigned long flags; |
90 | int retval; | 90 | int retval; |
@@ -94,7 +94,7 @@ extern __inline__ int atomic_inc_return(volatile atomic_t *v) | |||
94 | return retval; | 94 | return retval; |
95 | } | 95 | } |
96 | 96 | ||
97 | extern __inline__ int atomic_dec_return(volatile atomic_t *v) | 97 | static inline int atomic_dec_return(volatile atomic_t *v) |
98 | { | 98 | { |
99 | unsigned long flags; | 99 | unsigned long flags; |
100 | int retval; | 100 | int retval; |
@@ -103,7 +103,7 @@ extern __inline__ int atomic_dec_return(volatile atomic_t *v) | |||
103 | cris_atomic_restore(v, flags); | 103 | cris_atomic_restore(v, flags); |
104 | return retval; | 104 | return retval; |
105 | } | 105 | } |
106 | extern __inline__ int atomic_dec_and_test(volatile atomic_t *v) | 106 | static inline int atomic_dec_and_test(volatile atomic_t *v) |
107 | { | 107 | { |
108 | int retval; | 108 | int retval; |
109 | unsigned long flags; | 109 | unsigned long flags; |
@@ -113,7 +113,7 @@ extern __inline__ int atomic_dec_and_test(volatile atomic_t *v) | |||
113 | return retval; | 113 | return retval; |
114 | } | 114 | } |
115 | 115 | ||
116 | extern __inline__ int atomic_inc_and_test(volatile atomic_t *v) | 116 | static inline int atomic_inc_and_test(volatile atomic_t *v) |
117 | { | 117 | { |
118 | int retval; | 118 | int retval; |
119 | unsigned long flags; | 119 | unsigned long flags; |
diff --git a/include/asm-cris/bitops.h b/include/asm-cris/bitops.h index e3da57f97964..1bddb3f3a289 100644 --- a/include/asm-cris/bitops.h +++ b/include/asm-cris/bitops.h | |||
@@ -89,7 +89,7 @@ struct __dummy { unsigned long a[100]; }; | |||
89 | * It also implies a memory barrier. | 89 | * It also implies a memory barrier. |
90 | */ | 90 | */ |
91 | 91 | ||
92 | extern inline int test_and_set_bit(int nr, volatile unsigned long *addr) | 92 | static inline int test_and_set_bit(int nr, volatile unsigned long *addr) |
93 | { | 93 | { |
94 | unsigned int mask, retval; | 94 | unsigned int mask, retval; |
95 | unsigned long flags; | 95 | unsigned long flags; |
@@ -105,7 +105,7 @@ extern inline int test_and_set_bit(int nr, volatile unsigned long *addr) | |||
105 | return retval; | 105 | return retval; |
106 | } | 106 | } |
107 | 107 | ||
108 | extern inline int __test_and_set_bit(int nr, volatile unsigned long *addr) | 108 | static inline int __test_and_set_bit(int nr, volatile unsigned long *addr) |
109 | { | 109 | { |
110 | unsigned int mask, retval; | 110 | unsigned int mask, retval; |
111 | unsigned int *adr = (unsigned int *)addr; | 111 | unsigned int *adr = (unsigned int *)addr; |
@@ -132,7 +132,7 @@ extern inline int __test_and_set_bit(int nr, volatile unsigned long *addr) | |||
132 | * It also implies a memory barrier. | 132 | * It also implies a memory barrier. |
133 | */ | 133 | */ |
134 | 134 | ||
135 | extern inline int test_and_clear_bit(int nr, volatile unsigned long *addr) | 135 | static inline int test_and_clear_bit(int nr, volatile unsigned long *addr) |
136 | { | 136 | { |
137 | unsigned int mask, retval; | 137 | unsigned int mask, retval; |
138 | unsigned long flags; | 138 | unsigned long flags; |
@@ -157,7 +157,7 @@ extern inline int test_and_clear_bit(int nr, volatile unsigned long *addr) | |||
157 | * but actually fail. You must protect multiple accesses with a lock. | 157 | * but actually fail. You must protect multiple accesses with a lock. |
158 | */ | 158 | */ |
159 | 159 | ||
160 | extern inline int __test_and_clear_bit(int nr, volatile unsigned long *addr) | 160 | static inline int __test_and_clear_bit(int nr, volatile unsigned long *addr) |
161 | { | 161 | { |
162 | unsigned int mask, retval; | 162 | unsigned int mask, retval; |
163 | unsigned int *adr = (unsigned int *)addr; | 163 | unsigned int *adr = (unsigned int *)addr; |
@@ -177,7 +177,7 @@ extern inline int __test_and_clear_bit(int nr, volatile unsigned long *addr) | |||
177 | * It also implies a memory barrier. | 177 | * It also implies a memory barrier. |
178 | */ | 178 | */ |
179 | 179 | ||
180 | extern inline int test_and_change_bit(int nr, volatile unsigned long *addr) | 180 | static inline int test_and_change_bit(int nr, volatile unsigned long *addr) |
181 | { | 181 | { |
182 | unsigned int mask, retval; | 182 | unsigned int mask, retval; |
183 | unsigned long flags; | 183 | unsigned long flags; |
@@ -193,7 +193,7 @@ extern inline int test_and_change_bit(int nr, volatile unsigned long *addr) | |||
193 | 193 | ||
194 | /* WARNING: non atomic and it can be reordered! */ | 194 | /* WARNING: non atomic and it can be reordered! */ |
195 | 195 | ||
196 | extern inline int __test_and_change_bit(int nr, volatile unsigned long *addr) | 196 | static inline int __test_and_change_bit(int nr, volatile unsigned long *addr) |
197 | { | 197 | { |
198 | unsigned int mask, retval; | 198 | unsigned int mask, retval; |
199 | unsigned int *adr = (unsigned int *)addr; | 199 | unsigned int *adr = (unsigned int *)addr; |
@@ -214,7 +214,7 @@ extern inline int __test_and_change_bit(int nr, volatile unsigned long *addr) | |||
214 | * This routine doesn't need to be atomic. | 214 | * This routine doesn't need to be atomic. |
215 | */ | 215 | */ |
216 | 216 | ||
217 | extern inline int test_bit(int nr, const volatile unsigned long *addr) | 217 | static inline int test_bit(int nr, const volatile unsigned long *addr) |
218 | { | 218 | { |
219 | unsigned int mask; | 219 | unsigned int mask; |
220 | unsigned int *adr = (unsigned int *)addr; | 220 | unsigned int *adr = (unsigned int *)addr; |
@@ -258,7 +258,7 @@ extern inline int test_bit(int nr, const volatile unsigned long *addr) | |||
258 | * @offset: The bitnumber to start searching at | 258 | * @offset: The bitnumber to start searching at |
259 | * @size: The maximum size to search | 259 | * @size: The maximum size to search |
260 | */ | 260 | */ |
261 | extern inline int find_next_zero_bit (const unsigned long * addr, int size, int offset) | 261 | static inline int find_next_zero_bit (const unsigned long * addr, int size, int offset) |
262 | { | 262 | { |
263 | unsigned long *p = ((unsigned long *) addr) + (offset >> 5); | 263 | unsigned long *p = ((unsigned long *) addr) + (offset >> 5); |
264 | unsigned long result = offset & ~31UL; | 264 | unsigned long result = offset & ~31UL; |
@@ -366,7 +366,7 @@ found_middle: | |||
366 | #define minix_test_bit(nr,addr) test_bit(nr,addr) | 366 | #define minix_test_bit(nr,addr) test_bit(nr,addr) |
367 | #define minix_find_first_zero_bit(addr,size) find_first_zero_bit(addr,size) | 367 | #define minix_find_first_zero_bit(addr,size) find_first_zero_bit(addr,size) |
368 | 368 | ||
369 | extern inline int sched_find_first_bit(const unsigned long *b) | 369 | static inline int sched_find_first_bit(const unsigned long *b) |
370 | { | 370 | { |
371 | if (unlikely(b[0])) | 371 | if (unlikely(b[0])) |
372 | return __ffs(b[0]); | 372 | return __ffs(b[0]); |
diff --git a/include/asm-cris/checksum.h b/include/asm-cris/checksum.h index 15ca8aec5c63..26a7719bbb84 100644 --- a/include/asm-cris/checksum.h +++ b/include/asm-cris/checksum.h | |||
@@ -34,7 +34,7 @@ unsigned int csum_partial_copy_nocheck(const char *src, char *dst, | |||
34 | * Fold a partial checksum into a word | 34 | * Fold a partial checksum into a word |
35 | */ | 35 | */ |
36 | 36 | ||
37 | extern inline unsigned int csum_fold(unsigned int sum) | 37 | static inline unsigned int csum_fold(unsigned int sum) |
38 | { | 38 | { |
39 | /* the while loop is unnecessary really, it's always enough with two | 39 | /* the while loop is unnecessary really, it's always enough with two |
40 | iterations */ | 40 | iterations */ |
@@ -55,7 +55,7 @@ extern unsigned int csum_partial_copy_from_user(const char *src, char *dst, | |||
55 | * | 55 | * |
56 | */ | 56 | */ |
57 | 57 | ||
58 | extern inline unsigned short ip_fast_csum(unsigned char * iph, | 58 | static inline unsigned short ip_fast_csum(unsigned char * iph, |
59 | unsigned int ihl) | 59 | unsigned int ihl) |
60 | { | 60 | { |
61 | return csum_fold(csum_partial(iph, ihl * 4, 0)); | 61 | return csum_fold(csum_partial(iph, ihl * 4, 0)); |
@@ -66,7 +66,7 @@ extern inline unsigned short ip_fast_csum(unsigned char * iph, | |||
66 | * returns a 16-bit checksum, already complemented | 66 | * returns a 16-bit checksum, already complemented |
67 | */ | 67 | */ |
68 | 68 | ||
69 | extern inline unsigned short int csum_tcpudp_magic(unsigned long saddr, | 69 | static inline unsigned short int csum_tcpudp_magic(unsigned long saddr, |
70 | unsigned long daddr, | 70 | unsigned long daddr, |
71 | unsigned short len, | 71 | unsigned short len, |
72 | unsigned short proto, | 72 | unsigned short proto, |
@@ -80,7 +80,7 @@ extern inline unsigned short int csum_tcpudp_magic(unsigned long saddr, | |||
80 | * in icmp.c | 80 | * in icmp.c |
81 | */ | 81 | */ |
82 | 82 | ||
83 | extern inline unsigned short ip_compute_csum(unsigned char * buff, int len) { | 83 | static inline unsigned short ip_compute_csum(unsigned char * buff, int len) { |
84 | return csum_fold (csum_partial(buff, len, 0)); | 84 | return csum_fold (csum_partial(buff, len, 0)); |
85 | } | 85 | } |
86 | 86 | ||
diff --git a/include/asm-cris/current.h b/include/asm-cris/current.h index dce69c99da39..5f5c0efd00be 100644 --- a/include/asm-cris/current.h +++ b/include/asm-cris/current.h | |||
@@ -5,7 +5,7 @@ | |||
5 | 5 | ||
6 | struct task_struct; | 6 | struct task_struct; |
7 | 7 | ||
8 | extern inline struct task_struct * get_current(void) | 8 | static inline struct task_struct * get_current(void) |
9 | { | 9 | { |
10 | return current_thread_info()->task; | 10 | return current_thread_info()->task; |
11 | } | 11 | } |
diff --git a/include/asm-cris/delay.h b/include/asm-cris/delay.h index efc41aad4845..d3a397803719 100644 --- a/include/asm-cris/delay.h +++ b/include/asm-cris/delay.h | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | extern unsigned long loops_per_usec; /* arch/cris/mm/init.c */ | 14 | extern unsigned long loops_per_usec; /* arch/cris/mm/init.c */ |
15 | 15 | ||
16 | extern __inline__ void udelay(unsigned long usecs) | 16 | static inline void udelay(unsigned long usecs) |
17 | { | 17 | { |
18 | __delay(usecs * loops_per_usec); | 18 | __delay(usecs * loops_per_usec); |
19 | } | 19 | } |
diff --git a/include/asm-cris/io.h b/include/asm-cris/io.h index 16e791b3c721..716c69bc58f8 100644 --- a/include/asm-cris/io.h +++ b/include/asm-cris/io.h | |||
@@ -23,12 +23,12 @@ extern struct cris_io_operations *cris_iops; | |||
23 | * Change virtual addresses to physical addresses and vv. | 23 | * Change virtual addresses to physical addresses and vv. |
24 | */ | 24 | */ |
25 | 25 | ||
26 | extern inline unsigned long virt_to_phys(volatile void * address) | 26 | static inline unsigned long virt_to_phys(volatile void * address) |
27 | { | 27 | { |
28 | return __pa(address); | 28 | return __pa(address); |
29 | } | 29 | } |
30 | 30 | ||
31 | extern inline void * phys_to_virt(unsigned long address) | 31 | static inline void * phys_to_virt(unsigned long address) |
32 | { | 32 | { |
33 | return __va(address); | 33 | return __va(address); |
34 | } | 34 | } |
@@ -36,7 +36,7 @@ extern inline void * phys_to_virt(unsigned long address) | |||
36 | extern void __iomem * __ioremap(unsigned long offset, unsigned long size, unsigned long flags); | 36 | extern void __iomem * __ioremap(unsigned long offset, unsigned long size, unsigned long flags); |
37 | extern void __iomem * __ioremap_prot(unsigned long phys_addr, unsigned long size, pgprot_t prot); | 37 | extern void __iomem * __ioremap_prot(unsigned long phys_addr, unsigned long size, pgprot_t prot); |
38 | 38 | ||
39 | extern inline void __iomem * ioremap (unsigned long offset, unsigned long size) | 39 | static inline void __iomem * ioremap (unsigned long offset, unsigned long size) |
40 | { | 40 | { |
41 | return __ioremap(offset, size, 0); | 41 | return __ioremap(offset, size, 0); |
42 | } | 42 | } |
diff --git a/include/asm-cris/irq.h b/include/asm-cris/irq.h index 4fab5c3b2e15..4b338792218b 100644 --- a/include/asm-cris/irq.h +++ b/include/asm-cris/irq.h | |||
@@ -8,7 +8,7 @@ | |||
8 | 8 | ||
9 | #include <asm/arch/irq.h> | 9 | #include <asm/arch/irq.h> |
10 | 10 | ||
11 | extern __inline__ int irq_canonicalize(int irq) | 11 | static inline int irq_canonicalize(int irq) |
12 | { | 12 | { |
13 | return irq; | 13 | return irq; |
14 | } | 14 | } |
diff --git a/include/asm-cris/pgalloc.h b/include/asm-cris/pgalloc.h index a131776edf41..deaddfe79bbc 100644 --- a/include/asm-cris/pgalloc.h +++ b/include/asm-cris/pgalloc.h | |||
@@ -11,35 +11,35 @@ | |||
11 | * Allocate and free page tables. | 11 | * Allocate and free page tables. |
12 | */ | 12 | */ |
13 | 13 | ||
14 | extern inline pgd_t *pgd_alloc (struct mm_struct *mm) | 14 | static inline pgd_t *pgd_alloc (struct mm_struct *mm) |
15 | { | 15 | { |
16 | return (pgd_t *)get_zeroed_page(GFP_KERNEL); | 16 | return (pgd_t *)get_zeroed_page(GFP_KERNEL); |
17 | } | 17 | } |
18 | 18 | ||
19 | extern inline void pgd_free (pgd_t *pgd) | 19 | static inline void pgd_free (pgd_t *pgd) |
20 | { | 20 | { |
21 | free_page((unsigned long)pgd); | 21 | free_page((unsigned long)pgd); |
22 | } | 22 | } |
23 | 23 | ||
24 | extern inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) | 24 | static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) |
25 | { | 25 | { |
26 | pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); | 26 | pte_t *pte = (pte_t *)__get_free_page(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO); |
27 | return pte; | 27 | return pte; |
28 | } | 28 | } |
29 | 29 | ||
30 | extern inline struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) | 30 | static inline struct page *pte_alloc_one(struct mm_struct *mm, unsigned long address) |
31 | { | 31 | { |
32 | struct page *pte; | 32 | struct page *pte; |
33 | pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0); | 33 | pte = alloc_pages(GFP_KERNEL|__GFP_REPEAT|__GFP_ZERO, 0); |
34 | return pte; | 34 | return pte; |
35 | } | 35 | } |
36 | 36 | ||
37 | extern inline void pte_free_kernel(pte_t *pte) | 37 | static inline void pte_free_kernel(pte_t *pte) |
38 | { | 38 | { |
39 | free_page((unsigned long)pte); | 39 | free_page((unsigned long)pte); |
40 | } | 40 | } |
41 | 41 | ||
42 | extern inline void pte_free(struct page *pte) | 42 | static inline void pte_free(struct page *pte) |
43 | { | 43 | { |
44 | __free_page(pte); | 44 | __free_page(pte); |
45 | } | 45 | } |
diff --git a/include/asm-cris/pgtable.h b/include/asm-cris/pgtable.h index a9143bed99db..70a832514f62 100644 --- a/include/asm-cris/pgtable.h +++ b/include/asm-cris/pgtable.h | |||
@@ -112,44 +112,44 @@ extern unsigned long empty_zero_page; | |||
112 | * Undefined behaviour if not.. | 112 | * Undefined behaviour if not.. |
113 | */ | 113 | */ |
114 | 114 | ||
115 | extern inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } | 115 | static inline int pte_read(pte_t pte) { return pte_val(pte) & _PAGE_READ; } |
116 | extern inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } | 116 | static inline int pte_write(pte_t pte) { return pte_val(pte) & _PAGE_WRITE; } |
117 | extern inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_READ; } | 117 | static inline int pte_exec(pte_t pte) { return pte_val(pte) & _PAGE_READ; } |
118 | extern inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } | 118 | static inline int pte_dirty(pte_t pte) { return pte_val(pte) & _PAGE_MODIFIED; } |
119 | extern inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } | 119 | static inline int pte_young(pte_t pte) { return pte_val(pte) & _PAGE_ACCESSED; } |
120 | extern inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } | 120 | static inline int pte_file(pte_t pte) { return pte_val(pte) & _PAGE_FILE; } |
121 | 121 | ||
122 | extern inline pte_t pte_wrprotect(pte_t pte) | 122 | static inline pte_t pte_wrprotect(pte_t pte) |
123 | { | 123 | { |
124 | pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); | 124 | pte_val(pte) &= ~(_PAGE_WRITE | _PAGE_SILENT_WRITE); |
125 | return pte; | 125 | return pte; |
126 | } | 126 | } |
127 | 127 | ||
128 | extern inline pte_t pte_rdprotect(pte_t pte) | 128 | static inline pte_t pte_rdprotect(pte_t pte) |
129 | { | 129 | { |
130 | pte_val(pte) &= ~(_PAGE_READ | _PAGE_SILENT_READ); | 130 | pte_val(pte) &= ~(_PAGE_READ | _PAGE_SILENT_READ); |
131 | return pte; | 131 | return pte; |
132 | } | 132 | } |
133 | 133 | ||
134 | extern inline pte_t pte_exprotect(pte_t pte) | 134 | static inline pte_t pte_exprotect(pte_t pte) |
135 | { | 135 | { |
136 | pte_val(pte) &= ~(_PAGE_READ | _PAGE_SILENT_READ); | 136 | pte_val(pte) &= ~(_PAGE_READ | _PAGE_SILENT_READ); |
137 | return pte; | 137 | return pte; |
138 | } | 138 | } |
139 | 139 | ||
140 | extern inline pte_t pte_mkclean(pte_t pte) | 140 | static inline pte_t pte_mkclean(pte_t pte) |
141 | { | 141 | { |
142 | pte_val(pte) &= ~(_PAGE_MODIFIED | _PAGE_SILENT_WRITE); | 142 | pte_val(pte) &= ~(_PAGE_MODIFIED | _PAGE_SILENT_WRITE); |
143 | return pte; | 143 | return pte; |
144 | } | 144 | } |
145 | 145 | ||
146 | extern inline pte_t pte_mkold(pte_t pte) | 146 | static inline pte_t pte_mkold(pte_t pte) |
147 | { | 147 | { |
148 | pte_val(pte) &= ~(_PAGE_ACCESSED | _PAGE_SILENT_READ); | 148 | pte_val(pte) &= ~(_PAGE_ACCESSED | _PAGE_SILENT_READ); |
149 | return pte; | 149 | return pte; |
150 | } | 150 | } |
151 | 151 | ||
152 | extern inline pte_t pte_mkwrite(pte_t pte) | 152 | static inline pte_t pte_mkwrite(pte_t pte) |
153 | { | 153 | { |
154 | pte_val(pte) |= _PAGE_WRITE; | 154 | pte_val(pte) |= _PAGE_WRITE; |
155 | if (pte_val(pte) & _PAGE_MODIFIED) | 155 | if (pte_val(pte) & _PAGE_MODIFIED) |
@@ -157,7 +157,7 @@ extern inline pte_t pte_mkwrite(pte_t pte) | |||
157 | return pte; | 157 | return pte; |
158 | } | 158 | } |
159 | 159 | ||
160 | extern inline pte_t pte_mkread(pte_t pte) | 160 | static inline pte_t pte_mkread(pte_t pte) |
161 | { | 161 | { |
162 | pte_val(pte) |= _PAGE_READ; | 162 | pte_val(pte) |= _PAGE_READ; |
163 | if (pte_val(pte) & _PAGE_ACCESSED) | 163 | if (pte_val(pte) & _PAGE_ACCESSED) |
@@ -165,7 +165,7 @@ extern inline pte_t pte_mkread(pte_t pte) | |||
165 | return pte; | 165 | return pte; |
166 | } | 166 | } |
167 | 167 | ||
168 | extern inline pte_t pte_mkexec(pte_t pte) | 168 | static inline pte_t pte_mkexec(pte_t pte) |
169 | { | 169 | { |
170 | pte_val(pte) |= _PAGE_READ; | 170 | pte_val(pte) |= _PAGE_READ; |
171 | if (pte_val(pte) & _PAGE_ACCESSED) | 171 | if (pte_val(pte) & _PAGE_ACCESSED) |
@@ -173,7 +173,7 @@ extern inline pte_t pte_mkexec(pte_t pte) | |||
173 | return pte; | 173 | return pte; |
174 | } | 174 | } |
175 | 175 | ||
176 | extern inline pte_t pte_mkdirty(pte_t pte) | 176 | static inline pte_t pte_mkdirty(pte_t pte) |
177 | { | 177 | { |
178 | pte_val(pte) |= _PAGE_MODIFIED; | 178 | pte_val(pte) |= _PAGE_MODIFIED; |
179 | if (pte_val(pte) & _PAGE_WRITE) | 179 | if (pte_val(pte) & _PAGE_WRITE) |
@@ -181,7 +181,7 @@ extern inline pte_t pte_mkdirty(pte_t pte) | |||
181 | return pte; | 181 | return pte; |
182 | } | 182 | } |
183 | 183 | ||
184 | extern inline pte_t pte_mkyoung(pte_t pte) | 184 | static inline pte_t pte_mkyoung(pte_t pte) |
185 | { | 185 | { |
186 | pte_val(pte) |= _PAGE_ACCESSED; | 186 | pte_val(pte) |= _PAGE_ACCESSED; |
187 | if (pte_val(pte) & _PAGE_READ) | 187 | if (pte_val(pte) & _PAGE_READ) |
@@ -205,7 +205,7 @@ extern inline pte_t pte_mkyoung(pte_t pte) | |||
205 | * addresses (the 0xc0xxxxxx's) goes as void *'s. | 205 | * addresses (the 0xc0xxxxxx's) goes as void *'s. |
206 | */ | 206 | */ |
207 | 207 | ||
208 | extern inline pte_t __mk_pte(void * page, pgprot_t pgprot) | 208 | static inline pte_t __mk_pte(void * page, pgprot_t pgprot) |
209 | { | 209 | { |
210 | pte_t pte; | 210 | pte_t pte; |
211 | /* the PTE needs a physical address */ | 211 | /* the PTE needs a physical address */ |
@@ -223,7 +223,7 @@ extern inline pte_t __mk_pte(void * page, pgprot_t pgprot) | |||
223 | __pte; \ | 223 | __pte; \ |
224 | }) | 224 | }) |
225 | 225 | ||
226 | extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) | 226 | static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) |
227 | { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } | 227 | { pte_val(pte) = (pte_val(pte) & _PAGE_CHG_MASK) | pgprot_val(newprot); return pte; } |
228 | 228 | ||
229 | 229 | ||
@@ -232,7 +232,7 @@ extern inline pte_t pte_modify(pte_t pte, pgprot_t newprot) | |||
232 | * pte_pagenr refers to the page-number counted starting from the virtual DRAM start | 232 | * pte_pagenr refers to the page-number counted starting from the virtual DRAM start |
233 | */ | 233 | */ |
234 | 234 | ||
235 | extern inline unsigned long __pte_page(pte_t pte) | 235 | static inline unsigned long __pte_page(pte_t pte) |
236 | { | 236 | { |
237 | /* the PTE contains a physical address */ | 237 | /* the PTE contains a physical address */ |
238 | return (unsigned long)__va(pte_val(pte) & PAGE_MASK); | 238 | return (unsigned long)__va(pte_val(pte) & PAGE_MASK); |
@@ -250,7 +250,7 @@ extern inline unsigned long __pte_page(pte_t pte) | |||
250 | * don't need the __pa and __va transformations. | 250 | * don't need the __pa and __va transformations. |
251 | */ | 251 | */ |
252 | 252 | ||
253 | extern inline void pmd_set(pmd_t * pmdp, pte_t * ptep) | 253 | static inline void pmd_set(pmd_t * pmdp, pte_t * ptep) |
254 | { pmd_val(*pmdp) = _PAGE_TABLE | (unsigned long) ptep; } | 254 | { pmd_val(*pmdp) = _PAGE_TABLE | (unsigned long) ptep; } |
255 | 255 | ||
256 | #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT)) | 256 | #define pmd_page(pmd) (pfn_to_page(pmd_val(pmd) >> PAGE_SHIFT)) |
@@ -260,7 +260,7 @@ extern inline void pmd_set(pmd_t * pmdp, pte_t * ptep) | |||
260 | #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1)) | 260 | #define pgd_index(address) (((address) >> PGDIR_SHIFT) & (PTRS_PER_PGD-1)) |
261 | 261 | ||
262 | /* to find an entry in a page-table-directory */ | 262 | /* to find an entry in a page-table-directory */ |
263 | extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address) | 263 | static inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address) |
264 | { | 264 | { |
265 | return mm->pgd + pgd_index(address); | 265 | return mm->pgd + pgd_index(address); |
266 | } | 266 | } |
@@ -296,7 +296,7 @@ extern pgd_t swapper_pg_dir[PTRS_PER_PGD]; /* defined in head.S */ | |||
296 | * | 296 | * |
297 | * Actually I am not sure on what this could be used for. | 297 | * Actually I am not sure on what this could be used for. |
298 | */ | 298 | */ |
299 | extern inline void update_mmu_cache(struct vm_area_struct * vma, | 299 | static inline void update_mmu_cache(struct vm_area_struct * vma, |
300 | unsigned long address, pte_t pte) | 300 | unsigned long address, pte_t pte) |
301 | { | 301 | { |
302 | } | 302 | } |
diff --git a/include/asm-cris/processor.h b/include/asm-cris/processor.h index 0dc218117bd8..e8b2abb2ae59 100644 --- a/include/asm-cris/processor.h +++ b/include/asm-cris/processor.h | |||
@@ -45,7 +45,7 @@ | |||
45 | 45 | ||
46 | #define current_regs() user_regs(current->thread_info) | 46 | #define current_regs() user_regs(current->thread_info) |
47 | 47 | ||
48 | extern inline void prepare_to_copy(struct task_struct *tsk) | 48 | static inline void prepare_to_copy(struct task_struct *tsk) |
49 | { | 49 | { |
50 | } | 50 | } |
51 | 51 | ||
@@ -58,7 +58,7 @@ unsigned long get_wchan(struct task_struct *p); | |||
58 | extern unsigned long thread_saved_pc(struct task_struct *tsk); | 58 | extern unsigned long thread_saved_pc(struct task_struct *tsk); |
59 | 59 | ||
60 | /* Free all resources held by a thread. */ | 60 | /* Free all resources held by a thread. */ |
61 | extern inline void release_thread(struct task_struct *dead_task) | 61 | static inline void release_thread(struct task_struct *dead_task) |
62 | { | 62 | { |
63 | /* Nothing needs to be done. */ | 63 | /* Nothing needs to be done. */ |
64 | } | 64 | } |
diff --git a/include/asm-cris/semaphore.h b/include/asm-cris/semaphore.h index a19568e6aae6..53f548b791c1 100644 --- a/include/asm-cris/semaphore.h +++ b/include/asm-cris/semaphore.h | |||
@@ -37,17 +37,17 @@ struct semaphore { | |||
37 | #define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1) | 37 | #define DECLARE_MUTEX(name) __DECLARE_SEMAPHORE_GENERIC(name,1) |
38 | #define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0) | 38 | #define DECLARE_MUTEX_LOCKED(name) __DECLARE_SEMAPHORE_GENERIC(name,0) |
39 | 39 | ||
40 | extern inline void sema_init(struct semaphore *sem, int val) | 40 | static inline void sema_init(struct semaphore *sem, int val) |
41 | { | 41 | { |
42 | *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val); | 42 | *sem = (struct semaphore)__SEMAPHORE_INITIALIZER((*sem),val); |
43 | } | 43 | } |
44 | 44 | ||
45 | extern inline void init_MUTEX (struct semaphore *sem) | 45 | static inline void init_MUTEX (struct semaphore *sem) |
46 | { | 46 | { |
47 | sema_init(sem, 1); | 47 | sema_init(sem, 1); |
48 | } | 48 | } |
49 | 49 | ||
50 | extern inline void init_MUTEX_LOCKED (struct semaphore *sem) | 50 | static inline void init_MUTEX_LOCKED (struct semaphore *sem) |
51 | { | 51 | { |
52 | sema_init(sem, 0); | 52 | sema_init(sem, 0); |
53 | } | 53 | } |
@@ -59,7 +59,7 @@ extern void __up(struct semaphore * sem); | |||
59 | 59 | ||
60 | /* notice - we probably can do cli/sti here instead of saving */ | 60 | /* notice - we probably can do cli/sti here instead of saving */ |
61 | 61 | ||
62 | extern inline void down(struct semaphore * sem) | 62 | static inline void down(struct semaphore * sem) |
63 | { | 63 | { |
64 | unsigned long flags; | 64 | unsigned long flags; |
65 | int failed; | 65 | int failed; |
@@ -81,7 +81,7 @@ extern inline void down(struct semaphore * sem) | |||
81 | * returns negative for signalled and zero for semaphore acquired. | 81 | * returns negative for signalled and zero for semaphore acquired. |
82 | */ | 82 | */ |
83 | 83 | ||
84 | extern inline int down_interruptible(struct semaphore * sem) | 84 | static inline int down_interruptible(struct semaphore * sem) |
85 | { | 85 | { |
86 | unsigned long flags; | 86 | unsigned long flags; |
87 | int failed; | 87 | int failed; |
@@ -97,7 +97,7 @@ extern inline int down_interruptible(struct semaphore * sem) | |||
97 | return(failed); | 97 | return(failed); |
98 | } | 98 | } |
99 | 99 | ||
100 | extern inline int down_trylock(struct semaphore * sem) | 100 | static inline int down_trylock(struct semaphore * sem) |
101 | { | 101 | { |
102 | unsigned long flags; | 102 | unsigned long flags; |
103 | int failed; | 103 | int failed; |
@@ -117,7 +117,7 @@ extern inline int down_trylock(struct semaphore * sem) | |||
117 | * The default case (no contention) will result in NO | 117 | * The default case (no contention) will result in NO |
118 | * jumps for both down() and up(). | 118 | * jumps for both down() and up(). |
119 | */ | 119 | */ |
120 | extern inline void up(struct semaphore * sem) | 120 | static inline void up(struct semaphore * sem) |
121 | { | 121 | { |
122 | unsigned long flags; | 122 | unsigned long flags; |
123 | int wakeup; | 123 | int wakeup; |
diff --git a/include/asm-cris/system.h b/include/asm-cris/system.h index e06739806d4e..d48670107a85 100644 --- a/include/asm-cris/system.h +++ b/include/asm-cris/system.h | |||
@@ -41,7 +41,7 @@ extern struct task_struct *resume(struct task_struct *prev, struct task_struct * | |||
41 | void disable_hlt(void); | 41 | void disable_hlt(void); |
42 | void enable_hlt(void); | 42 | void enable_hlt(void); |
43 | 43 | ||
44 | extern inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) | 44 | static inline unsigned long __xchg(unsigned long x, volatile void * ptr, int size) |
45 | { | 45 | { |
46 | /* since Etrax doesn't have any atomic xchg instructions, we need to disable | 46 | /* since Etrax doesn't have any atomic xchg instructions, we need to disable |
47 | irq's (if enabled) and do it with move.d's */ | 47 | irq's (if enabled) and do it with move.d's */ |
diff --git a/include/asm-cris/timex.h b/include/asm-cris/timex.h index 3fb069a37717..b92e0e80fe86 100644 --- a/include/asm-cris/timex.h +++ b/include/asm-cris/timex.h | |||
@@ -16,7 +16,7 @@ | |||
16 | 16 | ||
17 | typedef unsigned long long cycles_t; | 17 | typedef unsigned long long cycles_t; |
18 | 18 | ||
19 | extern inline cycles_t get_cycles(void) | 19 | static inline cycles_t get_cycles(void) |
20 | { | 20 | { |
21 | return 0; | 21 | return 0; |
22 | } | 22 | } |
diff --git a/include/asm-cris/tlbflush.h b/include/asm-cris/tlbflush.h index 6ed7d9ae90db..c52238005b55 100644 --- a/include/asm-cris/tlbflush.h +++ b/include/asm-cris/tlbflush.h | |||
@@ -39,14 +39,14 @@ static inline void flush_tlb_range(struct vm_area_struct * vma, unsigned long st | |||
39 | flush_tlb_mm(vma->vm_mm); | 39 | flush_tlb_mm(vma->vm_mm); |
40 | } | 40 | } |
41 | 41 | ||
42 | extern inline void flush_tlb_pgtables(struct mm_struct *mm, | 42 | static inline void flush_tlb_pgtables(struct mm_struct *mm, |
43 | unsigned long start, unsigned long end) | 43 | unsigned long start, unsigned long end) |
44 | { | 44 | { |
45 | /* CRIS does not keep any page table caches in TLB */ | 45 | /* CRIS does not keep any page table caches in TLB */ |
46 | } | 46 | } |
47 | 47 | ||
48 | 48 | ||
49 | extern inline void flush_tlb(void) | 49 | static inline void flush_tlb(void) |
50 | { | 50 | { |
51 | flush_tlb_mm(current->mm); | 51 | flush_tlb_mm(current->mm); |
52 | } | 52 | } |
diff --git a/include/asm-cris/uaccess.h b/include/asm-cris/uaccess.h index 7d50086eb5ea..69d48a2dc8e1 100644 --- a/include/asm-cris/uaccess.h +++ b/include/asm-cris/uaccess.h | |||
@@ -213,7 +213,7 @@ extern unsigned long __copy_user(void *to, const void *from, unsigned long n); | |||
213 | extern unsigned long __copy_user_zeroing(void *to, const void *from, unsigned long n); | 213 | extern unsigned long __copy_user_zeroing(void *to, const void *from, unsigned long n); |
214 | extern unsigned long __do_clear_user(void *to, unsigned long n); | 214 | extern unsigned long __do_clear_user(void *to, unsigned long n); |
215 | 215 | ||
216 | extern inline unsigned long | 216 | static inline unsigned long |
217 | __generic_copy_to_user(void __user *to, const void *from, unsigned long n) | 217 | __generic_copy_to_user(void __user *to, const void *from, unsigned long n) |
218 | { | 218 | { |
219 | if (access_ok(VERIFY_WRITE, to, n)) | 219 | if (access_ok(VERIFY_WRITE, to, n)) |
@@ -221,7 +221,7 @@ __generic_copy_to_user(void __user *to, const void *from, unsigned long n) | |||
221 | return n; | 221 | return n; |
222 | } | 222 | } |
223 | 223 | ||
224 | extern inline unsigned long | 224 | static inline unsigned long |
225 | __generic_copy_from_user(void *to, const void __user *from, unsigned long n) | 225 | __generic_copy_from_user(void *to, const void __user *from, unsigned long n) |
226 | { | 226 | { |
227 | if (access_ok(VERIFY_READ, from, n)) | 227 | if (access_ok(VERIFY_READ, from, n)) |
@@ -229,7 +229,7 @@ __generic_copy_from_user(void *to, const void __user *from, unsigned long n) | |||
229 | return n; | 229 | return n; |
230 | } | 230 | } |
231 | 231 | ||
232 | extern inline unsigned long | 232 | static inline unsigned long |
233 | __generic_clear_user(void __user *to, unsigned long n) | 233 | __generic_clear_user(void __user *to, unsigned long n) |
234 | { | 234 | { |
235 | if (access_ok(VERIFY_WRITE, to, n)) | 235 | if (access_ok(VERIFY_WRITE, to, n)) |
@@ -237,13 +237,13 @@ __generic_clear_user(void __user *to, unsigned long n) | |||
237 | return n; | 237 | return n; |
238 | } | 238 | } |
239 | 239 | ||
240 | extern inline long | 240 | static inline long |
241 | __strncpy_from_user(char *dst, const char __user *src, long count) | 241 | __strncpy_from_user(char *dst, const char __user *src, long count) |
242 | { | 242 | { |
243 | return __do_strncpy_from_user(dst, src, count); | 243 | return __do_strncpy_from_user(dst, src, count); |
244 | } | 244 | } |
245 | 245 | ||
246 | extern inline long | 246 | static inline long |
247 | strncpy_from_user(char *dst, const char __user *src, long count) | 247 | strncpy_from_user(char *dst, const char __user *src, long count) |
248 | { | 248 | { |
249 | long res = -EFAULT; | 249 | long res = -EFAULT; |
@@ -256,7 +256,7 @@ strncpy_from_user(char *dst, const char __user *src, long count) | |||
256 | /* Note that if these expand awfully if made into switch constructs, so | 256 | /* Note that if these expand awfully if made into switch constructs, so |
257 | don't do that. */ | 257 | don't do that. */ |
258 | 258 | ||
259 | extern inline unsigned long | 259 | static inline unsigned long |
260 | __constant_copy_from_user(void *to, const void __user *from, unsigned long n) | 260 | __constant_copy_from_user(void *to, const void __user *from, unsigned long n) |
261 | { | 261 | { |
262 | unsigned long ret = 0; | 262 | unsigned long ret = 0; |
@@ -306,7 +306,7 @@ __constant_copy_from_user(void *to, const void __user *from, unsigned long n) | |||
306 | 306 | ||
307 | /* Ditto, don't make a switch out of this. */ | 307 | /* Ditto, don't make a switch out of this. */ |
308 | 308 | ||
309 | extern inline unsigned long | 309 | static inline unsigned long |
310 | __constant_copy_to_user(void __user *to, const void *from, unsigned long n) | 310 | __constant_copy_to_user(void __user *to, const void *from, unsigned long n) |
311 | { | 311 | { |
312 | unsigned long ret = 0; | 312 | unsigned long ret = 0; |
@@ -356,7 +356,7 @@ __constant_copy_to_user(void __user *to, const void *from, unsigned long n) | |||
356 | 356 | ||
357 | /* No switch, please. */ | 357 | /* No switch, please. */ |
358 | 358 | ||
359 | extern inline unsigned long | 359 | static inline unsigned long |
360 | __constant_clear_user(void __user *to, unsigned long n) | 360 | __constant_clear_user(void __user *to, unsigned long n) |
361 | { | 361 | { |
362 | unsigned long ret = 0; | 362 | unsigned long ret = 0; |
@@ -406,19 +406,19 @@ __constant_clear_user(void __user *to, unsigned long n) | |||
406 | * used in fast paths and have only a small space overhead. | 406 | * used in fast paths and have only a small space overhead. |
407 | */ | 407 | */ |
408 | 408 | ||
409 | extern inline unsigned long | 409 | static inline unsigned long |
410 | __generic_copy_from_user_nocheck(void *to, const void *from, unsigned long n) | 410 | __generic_copy_from_user_nocheck(void *to, const void *from, unsigned long n) |
411 | { | 411 | { |
412 | return __copy_user_zeroing(to,from,n); | 412 | return __copy_user_zeroing(to,from,n); |
413 | } | 413 | } |
414 | 414 | ||
415 | extern inline unsigned long | 415 | static inline unsigned long |
416 | __generic_copy_to_user_nocheck(void *to, const void *from, unsigned long n) | 416 | __generic_copy_to_user_nocheck(void *to, const void *from, unsigned long n) |
417 | { | 417 | { |
418 | return __copy_user(to,from,n); | 418 | return __copy_user(to,from,n); |
419 | } | 419 | } |
420 | 420 | ||
421 | extern inline unsigned long | 421 | static inline unsigned long |
422 | __generic_clear_user_nocheck(void *to, unsigned long n) | 422 | __generic_clear_user_nocheck(void *to, unsigned long n) |
423 | { | 423 | { |
424 | return __do_clear_user(to,n); | 424 | return __do_clear_user(to,n); |
diff --git a/include/asm-cris/unistd.h b/include/asm-cris/unistd.h index 156a34bfc583..2627bbdf8a11 100644 --- a/include/asm-cris/unistd.h +++ b/include/asm-cris/unistd.h | |||
@@ -343,14 +343,14 @@ | |||
343 | * some others too. | 343 | * some others too. |
344 | */ | 344 | */ |
345 | #define __NR__exit __NR_exit | 345 | #define __NR__exit __NR_exit |
346 | extern inline _syscall0(pid_t,setsid) | 346 | static inline _syscall0(pid_t,setsid) |
347 | extern inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) | 347 | static inline _syscall3(int,write,int,fd,const char *,buf,off_t,count) |
348 | extern inline _syscall3(int,read,int,fd,char *,buf,off_t,count) | 348 | static inline _syscall3(int,read,int,fd,char *,buf,off_t,count) |
349 | extern inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) | 349 | static inline _syscall3(off_t,lseek,int,fd,off_t,offset,int,count) |
350 | extern inline _syscall1(int,dup,int,fd) | 350 | static inline _syscall1(int,dup,int,fd) |
351 | extern inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) | 351 | static inline _syscall3(int,execve,const char *,file,char **,argv,char **,envp) |
352 | extern inline _syscall3(int,open,const char *,file,int,flag,int,mode) | 352 | static inline _syscall3(int,open,const char *,file,int,flag,int,mode) |
353 | extern inline _syscall1(int,close,int,fd) | 353 | static inline _syscall1(int,close,int,fd) |
354 | 354 | ||
355 | struct pt_regs; | 355 | struct pt_regs; |
356 | asmlinkage long sys_mmap2( | 356 | asmlinkage long sys_mmap2( |
@@ -382,8 +382,8 @@ asmlinkage long sys_rt_sigaction(int sig, | |||
382 | #ifdef __KERNEL__ | 382 | #ifdef __KERNEL__ |
383 | #define _exit kernel_syscall_exit | 383 | #define _exit kernel_syscall_exit |
384 | #endif | 384 | #endif |
385 | extern inline _syscall1(int,_exit,int,exitcode) | 385 | static inline _syscall1(int,_exit,int,exitcode) |
386 | extern inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) | 386 | static inline _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) |
387 | #endif | 387 | #endif |
388 | 388 | ||
389 | 389 | ||