diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2020-07-02 08:32:25 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-29 10:18:26 +0200 |
commit | 0edfdefc0a9c6f48a3ca4c27d7e5872432c99d0a (patch) | |
tree | 3c50df9a60e3fcdf504998571095616223f9b03b /arch | |
parent | df5b65f5df3e1c86d52d007a62c9fa1cd47c1072 (diff) | |
download | linux-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.c | 3 |
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 |