WARNING: vmlinux.o(.text+0xfcf6e): Section mismatch in referencefrom the function ram_console_driver_probe() to the function.init.text:persistent_ram_init_ringbuffer()The function ram_console_driver_probe() referencesthe function __init persistent_ram_init_ringbuffer().This is often because ram_console_driver_probe lacks a __initannotation or the annotation of persistent_ram_init_ringbuffer iswrong.

Move this driver to platform_driver_probe() because ram consoledevices aren't going to be added and removed at runtime. Alsoshorten the probe function name since driver is redundant andmakes the function name long.

static ssize_t ram_console_read_old(struct file *file, char __user *buf,-- Sent by an employee of the Qualcomm Innovation Center, Inc.The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.