diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-12-06 23:40:21 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:45 -0500 |
commit | bb8cc641653d785e3f3b8d3b0182a69edf825802 (patch) | |
tree | cc79a0236ee29a076ad47d0d3c9e578e04ee088e /include/asm-cris/semaphore-helper.h | |
parent | 30aaa5c67e72849ccf290b9a7cad58e43bbb47ac (diff) |
[PATCH] include/asm-cris/: "extern inline" -> "static inline"
"extern inline" generates a warning with -Wmissing-prototypes and I'm
currently working on getting the kernel cleaned up for adding this to the
CFLAGS since it will help us to avoid a nasty class of runtime errors.
If there are places that really need a forced inline, __always_inline would be
the correct solution.
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/semaphore-helper.h')
-rw-r--r-- | include/asm-cris/semaphore-helper.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asm-cris/semaphore-helper.h b/include/asm-cris/semaphore-helper.h index dbd0f30b85b6..a8e1e6cb7cd0 100644 --- a/include/asm-cris/semaphore-helper.h +++ b/include/asm-cris/semaphore-helper.h | |||
@@ -20,12 +20,12 @@ | |||
20 | /* | 20 | /* |
21 | * These two _must_ execute atomically wrt each other. | 21 | * These two _must_ execute atomically wrt each other. |
22 | */ | 22 | */ |
23 | extern inline void wake_one_more(struct semaphore * sem) | 23 | static inline void wake_one_more(struct semaphore * sem) |
24 | { | 24 | { |
25 | atomic_inc(&sem->waking); | 25 | atomic_inc(&sem->waking); |
26 | } | 26 | } |
27 | 27 | ||
28 | extern inline int waking_non_zero(struct semaphore *sem) | 28 | static inline int waking_non_zero(struct semaphore *sem) |
29 | { | 29 | { |
30 | unsigned long flags; | 30 | unsigned long flags; |
31 | int ret = 0; | 31 | int ret = 0; |
@@ -40,7 +40,7 @@ extern inline int waking_non_zero(struct semaphore *sem) | |||
40 | return ret; | 40 | return ret; |
41 | } | 41 | } |
42 | 42 | ||
43 | extern inline int waking_non_zero_interruptible(struct semaphore *sem, | 43 | static inline int waking_non_zero_interruptible(struct semaphore *sem, |
44 | struct task_struct *tsk) | 44 | struct task_struct *tsk) |
45 | { | 45 | { |
46 | int ret = 0; | 46 | int ret = 0; |
@@ -59,7 +59,7 @@ extern inline int waking_non_zero_interruptible(struct semaphore *sem, | |||
59 | return ret; | 59 | return ret; |
60 | } | 60 | } |
61 | 61 | ||
62 | extern inline int waking_non_zero_trylock(struct semaphore *sem) | 62 | static inline int waking_non_zero_trylock(struct semaphore *sem) |
63 | { | 63 | { |
64 | int ret = 1; | 64 | int ret = 1; |
65 | unsigned long flags; | 65 | unsigned long flags; |