Commit 93dfe6d7 authored by Max Filippov's avatar Max Filippov Committed by Khalid Elmously

xtensa: update *pos in cpuinfo_op.next

BugLink: https://bugs.launchpad.net/bugs/1889928

[ Upstream commit 0d5ab144 ]

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: default avatarMax Filippov <jcmvbkbc@gmail.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarKamal Mostafa <kamal@canonical.com>
Signed-off-by: default avatarKhalid Elmously <khalid.elmously@canonical.com>
parent 4fa49aa9
...@@ -716,7 +716,8 @@ c_start(struct seq_file *f, loff_t *pos) ...@@ -716,7 +716,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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment