printk: ringbuffer: Reference text_data_ring directly in callees.
authorNikolay Borisov <nborisov@suse.com>
Tue, 10 Nov 2020 13:26:49 +0000 (15:26 +0200)
committerPetr Mladek <pmladek@suse.com>
Wed, 11 Nov 2020 15:55:39 +0000 (16:55 +0100)
commit584da076866f38ffb952efcc25af039f9551df81
tree27b70e3112ae86ab91c64b6b4344c7be212772b0
parent8119c4332d253660e0a6b8748fe0749961cfbc97
printk: ringbuffer: Reference text_data_ring directly in callees.

A bunch of functions in the new ringbuffer code take both a
printk_ringbuffer struct and a separate prb_data_ring. This is a relic
from an earlier version of the code when a second data ring was present.
Since this is no longer the case remove the extra function argument
from:
 - data_make_reusable()
 - data_push_tail()
 - data_alloc()
 - data_realloc()

Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
kernel/printk/printk_ringbuffer.c