diff options
author | Kay Sievers <kay@vrfy.org> | 2012-05-08 19:37:51 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-05-09 18:51:09 -0400 |
commit | 7f3a781d6fd81e397c3928c9af33f1fc63232db6 (patch) | |
tree | 326e060d609a4c7e2775b2af7e82bfa2215a35a9 /drivers/char | |
parent | 6a7e2618b3dbfbf1e8ab2b4be102b2944738fb68 (diff) |
printk - fix compilation for CONFIG_PRINTK=n
Reported-by: Randy Dunlap <rdunlap@xenotime.net>
Signed-off-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/mem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/char/mem.c b/drivers/char/mem.c index 0e7fbfcbd6e6..67c3371723cc 100644 --- a/drivers/char/mem.c +++ b/drivers/char/mem.c | |||
@@ -825,7 +825,9 @@ static const struct memdev { | |||
825 | [7] = { "full", 0666, &full_fops, NULL }, | 825 | [7] = { "full", 0666, &full_fops, NULL }, |
826 | [8] = { "random", 0666, &random_fops, NULL }, | 826 | [8] = { "random", 0666, &random_fops, NULL }, |
827 | [9] = { "urandom", 0666, &urandom_fops, NULL }, | 827 | [9] = { "urandom", 0666, &urandom_fops, NULL }, |
828 | #ifdef CONFIG_PRINTK | ||
828 | [11] = { "kmsg", 0644, &kmsg_fops, NULL }, | 829 | [11] = { "kmsg", 0644, &kmsg_fops, NULL }, |
830 | #endif | ||
829 | #ifdef CONFIG_CRASH_DUMP | 831 | #ifdef CONFIG_CRASH_DUMP |
830 | [12] = { "oldmem", 0, &oldmem_fops, NULL }, | 832 | [12] = { "oldmem", 0, &oldmem_fops, NULL }, |
831 | #endif | 833 | #endif |