[PATCH printk v4 3/6] printk: ringbuffer: clear initial reserved fields

2020-09-08 Thread John Ogness
prb_reserve() will set some meta data values and leave others uninitialized (or rather, containing the values of the previous wrap). Simplify the API by always clearing out all the fields. Only the sequence number is filled in. The caller is now responsible for filling in the rest of the meta data

Re: [PATCH printk v4 3/6] printk: ringbuffer: clear initial reserved fields

2020-09-09 Thread Petr Mladek
On Tue 2020-09-08 22:34:56, John Ogness wrote: > prb_reserve() will set some meta data values and leave others > uninitialized (or rather, containing the values of the previous > wrap). Simplify the API by always clearing out all the fields. > Only the sequence number is filled in. The caller is no