printk: ringbuffer: relocate get_data()
authorJohn Ogness <john.ogness@linutronix.de>
Mon, 14 Sep 2020 12:33:49 +0000 (14:39 +0206)
committerPetr Mladek <pmladek@suse.com>
Tue, 15 Sep 2020 13:41:04 +0000 (15:41 +0200)
commit2a7f87ed05b9035ef818d0f46fe6aef5640224e3
tree9372bbafc25ffbb4b694dfeec12a823e3fa5eaf9
parente7c1fe21046a024a5a9ef46e3752521afc1ada7b
printk: ringbuffer: relocate get_data()

Move the internal get_data() function as-is above prb_reserve() so
that a later change can make use of the static function.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20200914123354.832-2-john.ogness@linutronix.de
kernel/printk/printk_ringbuffer.c