diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-08-11 08:38:12 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-08-11 09:04:19 -0400 |
commit | ced9cd40ac14111befd6b0c73ec90106c22a3fd7 (patch) | |
tree | b77a8df52604120a173fdab3ff675a32f3294d3e /include/linux/kernel.h | |
parent | b845b517b5e3706a3729f6ea83b88ab85f0725b0 (diff) |
printk: robustify printk, fix
fix:
include/linux/kernel.h: In function ‘printk_needs_cpu':
include/linux/kernel.h:217: error: parameter name omitted
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/kernel.h')
-rw-r--r-- | include/linux/kernel.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index 113ac8d0425f..3652a4564126 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
@@ -200,8 +200,6 @@ extern struct ratelimit_state printk_ratelimit_state; | |||
200 | extern int printk_ratelimit(void); | 200 | extern int printk_ratelimit(void); |
201 | extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, | 201 | extern bool printk_timed_ratelimit(unsigned long *caller_jiffies, |
202 | unsigned int interval_msec); | 202 | unsigned int interval_msec); |
203 | extern void printk_tick(void); | ||
204 | extern int printk_needs_cpu(int); | ||
205 | #else | 203 | #else |
206 | static inline int vprintk(const char *s, va_list args) | 204 | static inline int vprintk(const char *s, va_list args) |
207 | __attribute__ ((format (printf, 1, 0))); | 205 | __attribute__ ((format (printf, 1, 0))); |
@@ -213,10 +211,11 @@ static inline int printk_ratelimit(void) { return 0; } | |||
213 | static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \ | 211 | static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \ |
214 | unsigned int interval_msec) \ | 212 | unsigned int interval_msec) \ |
215 | { return false; } | 213 | { return false; } |
216 | static inline void printk_tick(void) { } | ||
217 | static inline int printk_needs_cpu(int) { return 0; } | ||
218 | #endif | 214 | #endif |
219 | 215 | ||
216 | extern int printk_needs_cpu(int cpu); | ||
217 | extern void printk_tick(void); | ||
218 | |||
220 | extern void asmlinkage __attribute__((format(printf, 1, 2))) | 219 | extern void asmlinkage __attribute__((format(printf, 1, 2))) |
221 | early_printk(const char *fmt, ...); | 220 | early_printk(const char *fmt, ...); |
222 | 221 | ||