aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/printk.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2008-02-08 04:21:25 -0800
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-08 09:22:39 -0800
commit7ef3d2fd17c377ef64a2aa19677d17576606c3b4 (patch)
tree036c2fe4a87bda412908bc82602ce29f4d431dbe /kernel/printk.c
parent36e789144267105e0b3f2b9bca7db3184fce50dc (diff)
downloadkernel_samsung_smdk4412-7ef3d2fd17c377ef64a2aa19677d17576606c3b4.zip
kernel_samsung_smdk4412-7ef3d2fd17c377ef64a2aa19677d17576606c3b4.tar.gz
kernel_samsung_smdk4412-7ef3d2fd17c377ef64a2aa19677d17576606c3b4.tar.bz2
printk_ratelimit() functions should use CONFIG_PRINTK
Makes an embedded image a bit smaller. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/printk.c')
-rw-r--r--kernel/printk.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/printk.c b/kernel/printk.c
index e95e7c6..bee3610 100644
--- a/kernel/printk.c
+++ b/kernel/printk.c
@@ -1251,6 +1251,7 @@ void tty_write_message(struct tty_struct *tty, char *msg)
return;
}
+#if defined CONFIG_PRINTK
/*
* printk rate limiting, lifted from the networking subsystem.
*
@@ -1320,3 +1321,4 @@ bool printk_timed_ratelimit(unsigned long *caller_jiffies,
return false;
}
EXPORT_SYMBOL(printk_timed_ratelimit);
+#endif