Skip to content

Commit e831e40

Browse files
jognesspmladek
authored andcommitted
printk: kmsg_dump: remove unused fields
struct kmsg_dumper still contains some fields that were used to iterate the old ringbuffer. They are no longer used. Remove them and update the struct documentation. 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/20210303101528.29901-5-john.ogness@linutronix.de
1 parent bb07b16 commit e831e40

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

include/linux/kmsg_dump.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ enum kmsg_dump_reason {
3636
* through the record iterator
3737
* @max_reason: filter for highest reason number that should be dumped
3838
* @registered: Flag that specifies if this is already registered
39+
* @active: Flag that specifies if this is currently dumping
40+
* @cur_seq: Points to the oldest message to dump
41+
* @next_seq: Points after the newest message to dump
3942
*/
4043
struct kmsg_dumper {
4144
struct list_head list;
@@ -45,8 +48,6 @@ struct kmsg_dumper {
4548
bool registered;
4649

4750
/* private state of the kmsg iterator */
48-
u32 cur_idx;
49-
u32 next_idx;
5051
u64 cur_seq;
5152
u64 next_seq;
5253
};

0 commit comments

Comments
 (0)