mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-07 15:01:44 +00:00
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
1 changed files with 3 additions and 4 deletions
|
@ -200,8 +200,6 @@ extern struct ratelimit_state printk_ratelimit_state;
|
||||||
extern int printk_ratelimit(void);
|
extern int printk_ratelimit(void);
|
||||||
extern bool printk_timed_ratelimit(unsigned long *caller_jiffies,
|
extern bool printk_timed_ratelimit(unsigned long *caller_jiffies,
|
||||||
unsigned int interval_msec);
|
unsigned int interval_msec);
|
||||||
extern void printk_tick(void);
|
|
||||||
extern int printk_needs_cpu(int);
|
|
||||||
#else
|
#else
|
||||||
static inline int vprintk(const char *s, va_list args)
|
static inline int vprintk(const char *s, va_list args)
|
||||||
__attribute__ ((format (printf, 1, 0)));
|
__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, \
|
static inline bool printk_timed_ratelimit(unsigned long *caller_jiffies, \
|
||||||
unsigned int interval_msec) \
|
unsigned int interval_msec) \
|
||||||
{ return false; }
|
{ return false; }
|
||||||
static inline void printk_tick(void) { }
|
|
||||||
static inline int printk_needs_cpu(int) { return 0; }
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
extern int printk_needs_cpu(int cpu);
|
||||||
|
extern void printk_tick(void);
|
||||||
|
|
||||||
extern void asmlinkage __attribute__((format(printf, 1, 2)))
|
extern void asmlinkage __attribute__((format(printf, 1, 2)))
|
||||||
early_printk(const char *fmt, ...);
|
early_printk(const char *fmt, ...);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue