projects
/
wrapfs-5.3.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c652bb
)
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
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 29 Jul 2020 08:19:35 +0000
(10:19 +0200)
[ Upstream commit
0d5ab144429e8bd80889b856a44d56ab4a5cd59b
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/xtensa/kernel/setup.c
patch
|
blob
|
history
diff --git
a/arch/xtensa/kernel/setup.c
b/arch/xtensa/kernel/setup.c
index 3880c765d44898f8c8f2d2dc400d1f1ac5269294..0271e2e47bcdf05ed767d3e64d1bc04ac398a32d 100644
(file)
--- a/
arch/xtensa/kernel/setup.c
+++ b/
arch/xtensa/kernel/setup.c
@@
-725,7
+725,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