aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk.c
diff options
context:
space:
mode:
authorRandy Dunlap <rdunlap@xenotime.net>2012-05-11 19:36:07 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-05-11 19:44:54 -0400
commit1fce677971e29ceaa7c569741fa9c685a7b1052a (patch)
treeed4e338140b9c44def77d53836c02e569dbf2981 /kernel/printk.c
parent42d1149f75a3d78033f66853796f20340d7b3ee2 (diff)
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 <kay@vrfy.org> Signed-off-by: Randy Dunlap <rdunlap@xenotime.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/printk.c')
-rw-r--r--kernel/printk.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 8b027bdf4606..c42faf97404a 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -1439,6 +1439,10 @@ static struct log *log_from_idx(u32 idx) { return NULL; }
1439static u32 log_next(u32 idx) { return 0; } 1439static u32 log_next(u32 idx) { return 0; }
1440static char *log_text(const struct log *msg) { return NULL; } 1440static char *log_text(const struct log *msg) { return NULL; }
1441static void call_console_drivers(int level, const char *text, size_t len) {} 1441static void call_console_drivers(int level, const char *text, size_t len) {}
1442static size_t prepend_timestamp(unsigned long long t, char *buf)
1443{
1444 return 0;
1445}
1442 1446
1443#endif /* CONFIG_PRINTK */ 1447#endif /* CONFIG_PRINTK */
1444 1448