Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29673655 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

Staging: android: ram_console.c:



Fix build error when CONFIG_PRINTK is not selected.

Reported-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Acked-by: default avatarRandy Dunlap <rdunlap@xenotime.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent da45e3fe
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -85,6 +85,10 @@ static int __init ram_console_module_init(void)
	return platform_driver_probe(&ram_console_driver, ram_console_probe);
}

#ifndef CONFIG_PRINTK
#define dmesg_restrict	0
#endif

static ssize_t ram_console_read_old(struct file *file, char __user *buf,
				    size_t len, loff_t *offset)
{