Commit 07261edb authored by Pranith Kumar's avatar Pranith Kumar Committed by Linus Torvalds

printk: add dummy routine for when CONFIG_PRINTK=n

There are missing dummy routines for log_buf_addr_get() and
log_buf_len_get() for when CONFIG_PRINTK is not set causing build
failures.

This patch adds these dummy routines at the appropriate location.
Signed-off-by: default avatarPranith Kumar <bobby.prani@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: default avatarPetr Mladek <pmladek@suse.cz>
Acked-by: default avatarSteven Rostedt <rostedt@goodmis.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 17636faa
...@@ -10,9 +10,6 @@ ...@@ -10,9 +10,6 @@
extern const char linux_banner[]; extern const char linux_banner[];
extern const char linux_proc_banner[]; extern const char linux_proc_banner[];
extern char *log_buf_addr_get(void);
extern u32 log_buf_len_get(void);
static inline int printk_get_level(const char *buffer) static inline int printk_get_level(const char *buffer)
{ {
if (buffer[0] == KERN_SOH_ASCII && buffer[1]) { if (buffer[0] == KERN_SOH_ASCII && buffer[1]) {
...@@ -163,6 +160,8 @@ extern int kptr_restrict; ...@@ -163,6 +160,8 @@ extern int kptr_restrict;
extern void wake_up_klogd(void); extern void wake_up_klogd(void);
char *log_buf_addr_get(void);
u32 log_buf_len_get(void);
void log_buf_kexec_setup(void); void log_buf_kexec_setup(void);
void __init setup_log_buf(int early); void __init setup_log_buf(int early);
void dump_stack_set_arch_desc(const char *fmt, ...); void dump_stack_set_arch_desc(const char *fmt, ...);
...@@ -198,6 +197,16 @@ static inline void wake_up_klogd(void) ...@@ -198,6 +197,16 @@ static inline void wake_up_klogd(void)
{ {
} }
static inline char *log_buf_addr_get(void)
{
return NULL;
}
static inline u32 log_buf_len_get(void)
{
return 0;
}
static inline void log_buf_kexec_setup(void) static inline void log_buf_kexec_setup(void)
{ {
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment