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>
This commit is contained in:
parent
b845b517b5
commit
ced9cd40ac
|
@ -200,8 +200,6 @@ extern struct ratelimit_state printk_ratelimit_state;
|
|||
extern int printk_ratelimit(void);
|
||||
extern bool printk_timed_ratelimit(unsigned long *caller_jiffies,
|
||||
unsigned int interval_msec);
|
||||
extern void printk_tick(void);
|
||||
extern int printk_needs_cpu(int);
|
||||
#else
|
||||
static inline int vprintk(const char *s, va_list args)
|
||||
__attribute__ ((format (printf, 1, 0)));
|
||||
|
@ -213,10 +211,11 @@ static inline int printk_ratelimit(void) { return 0; }
|
|||
static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \
|
||||
unsigned int interval_msec) \
|
||||
{ return false; }
|
||||
static inline void printk_tick(void) { }
|
||||
static inline int printk_needs_cpu(int) { return 0; }
|
||||
#endif
|
||||
|
||||
extern int printk_needs_cpu(int cpu);
|
||||
extern void printk_tick(void);
|
||||
|
||||
extern void asmlinkage __attribute__((format(printf, 1, 2)))
|
||||
early_printk(const char *fmt, ...);
|
||||
|
||||
|
|
Loading…
Reference in New Issue