Skip to content

Commit 0d5ab14

Browse files
committed
xtensa: update *pos in cpuinfo_op.next
Increment *pos in the cpuinfo_op.next to fix the following warning triggered by cat /proc/cpuinfo: seq_file: buggy .next function c_next did not update position index Signed-off-by: Max Filippov <[email protected]>
1 parent 73f9941 commit 0d5ab14

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/xtensa/kernel/setup.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,8 @@ c_start(struct seq_file *f, loff_t *pos)
724724
static void *
725725
c_next(struct seq_file *f, void *v, loff_t *pos)
726726
{
727-
return NULL;
727+
++*pos;
728+
return c_start(f, pos);
728729
}
729730

730731
static void

0 commit comments

Comments
 (0)