aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorRandy Dunlap <randy.dunlap@oracle.com>2009-12-01 13:52:02 -0500
committerDavid Woodhouse <David.Woodhouse@intel.com>2009-12-02 03:44:33 -0500
commit595dd3d8bf953254d8d2f30f99c54fe09c470040 (patch)
treef7a1d6c8ccb2e32f4fdf7e04a6a6ba8cfe0acc0c /kernel
parent75352662c54421b48ed58200565395b123952748 (diff)
kmsg_dump: fix build for CONFIG_PRINTK=n
kmsg_dump() fails to build when CONFIG_PRINTK=n; provide stubs for the kmsg_dump*() functions when CONFIG_PRINTK=n. kernel/printk.c: In function 'kmsg_dump': kernel/printk.c:1501: error: 'log_buf_len' undeclared (first use in this function) kernel/printk.c:1502: error: 'logged_chars' undeclared (first use in this function) kernel/printk.c:1506: error: 'log_buf' undeclared (first use in this function) Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Acked-by: Simon Kagstrom <simon.kagstrom@netinsight.net> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/printk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index 051d1f50648f..2a564570f822 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -1405,7 +1405,6 @@ bool printk_timed_ratelimit(unsigned long *caller_jiffies,
1405 return false; 1405 return false;
1406} 1406}
1407EXPORT_SYMBOL(printk_timed_ratelimit); 1407EXPORT_SYMBOL(printk_timed_ratelimit);
1408#endif
1409 1408
1410static DEFINE_SPINLOCK(dump_list_lock); 1409static DEFINE_SPINLOCK(dump_list_lock);
1411static LIST_HEAD(dump_list); 1410static LIST_HEAD(dump_list);
@@ -1524,3 +1523,4 @@ void kmsg_dump(enum kmsg_dump_reason reason)
1524 dumper->dump(dumper, reason, s1, l1, s2, l2); 1523 dumper->dump(dumper, reason, s1, l1, s2, l2);
1525 spin_unlock_irqrestore(&dump_list_lock, flags); 1524 spin_unlock_irqrestore(&dump_list_lock, flags);
1526} 1525}
1526#endif