summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-07-02 08:32:25 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-29 10:18:26 +0200
commit0edfdefc0a9c6f48a3ca4c27d7e5872432c99d0a (patch)
tree3c50df9a60e3fcdf504998571095616223f9b03b /arch
parentdf5b65f5df3e1c86d52d007a62c9fa1cd47c1072 (diff)
downloadlinux-stable-0edfdefc0a9c6f48a3ca4c27d7e5872432c99d0a.tar.gz
linux-stable-0edfdefc0a9c6f48a3ca4c27d7e5872432c99d0a.tar.bz2
linux-stable-0edfdefc0a9c6f48a3ca4c27d7e5872432c99d0a.zip
xtensa: update *pos in cpuinfo_op.next
[ 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>
Diffstat (limited to 'arch')
-rw-r--r--arch/xtensa/kernel/setup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c
index e0e1e1892b86..d08172138369 100644
--- a/arch/xtensa/kernel/setup.c
+++ b/arch/xtensa/kernel/setup.c
@@ -716,7 +716,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