Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Staging: android: ram_console: fix up remaining checkpatch warnings

This cleans up the last of the checkpatch warnings in the android
ram_console driver.


Cc: San Mehat <san@android.com>
Cc: Arve Hjønnevåg <arve@android.com>
Cc: David Rientjes <rientjes@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

+5 -4
+5 -4
drivers/staging/android/ram_console.c
··· 20 20 #include <linux/proc_fs.h> 21 21 #include <linux/string.h> 22 22 #include <linux/uaccess.h> 23 - #include <asm/io.h> 23 + #include <linux/io.h> 24 24 25 25 #ifdef CONFIG_ANDROID_RAM_CONSOLE_ERROR_CORRECTION 26 26 #include <linux/rslib.h> ··· 225 225 buffer_size - sizeof(struct ram_console_buffer); 226 226 227 227 if (ram_console_buffer_size > buffer_size) { 228 - pr_err("ram_console: buffer %p, invalid size %zu, datasize %zu\n", 229 - buffer, buffer_size, ram_console_buffer_size); 228 + pr_err("ram_console: buffer %p, invalid size %zu, " 229 + "datasize %zu\n", buffer, buffer_size, 230 + ram_console_buffer_size); 230 231 return 0; 231 232 } 232 233 ··· 366 365 return count; 367 366 } 368 367 369 - static struct file_operations ram_console_file_ops = { 368 + static const struct file_operations ram_console_file_ops = { 370 369 .owner = THIS_MODULE, 371 370 .read = ram_console_read_old, 372 371 };