mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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 <jcmvbkbc@gmail.com>
This commit is contained in:
parent
73f9941306
commit
0d5ab14442
1 changed files with 2 additions and 1 deletions
|
@ -724,7 +724,8 @@ c_start(struct seq_file *f, loff_t *pos)
|
||||||
static void *
|
static void *
|
||||||
c_next(struct seq_file *f, void *v, loff_t *pos)
|
c_next(struct seq_file *f, void *v, loff_t *pos)
|
||||||
{
|
{
|
||||||
return NULL;
|
++*pos;
|
||||||
|
return c_start(f, pos);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Add table
Reference in a new issue