]> err.no Git - linux-2.6/commit
[PATCH] remove the syslog interface when printk is disabled
authorMike Galbraith <efault@gmx.de>
Thu, 7 Dec 2006 04:37:42 +0000 (20:37 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Thu, 7 Dec 2006 16:39:38 +0000 (08:39 -0800)
commitc36264dfb2d6fa6383082de0a1bba8e12b477da1
tree25efc8365544d12974f0633ad46f619bfbf087e1
parent44ddc4f5673a62c9ecdbb7b502fe7b8206b0f945
[PATCH] remove the syslog interface when printk is disabled

Attempts to read() from the non-existent dmesg buffer will return zero and
userspace tends to get stuck in a busyloop.

So just remove /dev/kmsg altogether if CONFIG_PRINTK=n.

Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/proc/Makefile
fs/proc/proc_misc.c
kernel/printk.c