projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73f9941
)
xtensa: update *pos in cpuinfo_op.next
author
Max Filippov
<jcmvbkbc@gmail.com>
Thu, 2 Jul 2020 15:32:25 +0000
(08:32 -0700)
committer
Max Filippov
<jcmvbkbc@gmail.com>
Thu, 2 Jul 2020 15:35:02 +0000
(08:35 -0700)
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>
arch/xtensa/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/xtensa/kernel/setup.c
b/arch/xtensa/kernel/setup.c
index d9204dc2656e718a3826e703819418d409036e25..be2c78f7169500e73fb6aded1803b6cd69ed9e71 100644
(file)
--- a/
arch/xtensa/kernel/setup.c
+++ b/
arch/xtensa/kernel/setup.c
@@
-724,7
+724,8
@@
c_start(struct seq_file *f, loff_t *pos)
static void *
c_next(struct seq_file *f, void *v, loff_t *pos)
{
- return NULL;
+ ++*pos;
+ return c_start(f, pos);
}
static void