From: Randy Dunlap Date: Fri, 11 May 2012 23:36:07 +0000 (-0700) Subject: printk: add stub for prepend_timestamp() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1fce677971e29ceaa7c569741fa9c685a7b1052a;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git printk: add stub for prepend_timestamp() Add a stub for prepend_timestamp() when CONFIG_PRINTK is not enabled. Fixes this build error: kernel/printk.c:1770:3: error: implicit declaration of function 'prepend_timestamp' Cc: Kay Sievers Signed-off-by: Randy Dunlap Signed-off-by: Greg Kroah-Hartman --- diff --git a/kernel/printk.c b/kernel/printk.c index 8b027bdf460..c42faf97404 100644 --- a/kernel/printk.c +++ b/kernel/printk.c @@ -1439,6 +1439,10 @@ static struct log *log_from_idx(u32 idx) { return NULL; } static u32 log_next(u32 idx) { return 0; } static char *log_text(const struct log *msg) { return NULL; } static void call_console_drivers(int level, const char *text, size_t len) {} +static size_t prepend_timestamp(unsigned long long t, char *buf) +{ + return 0; +} #endif /* CONFIG_PRINTK */