summaryrefslogtreecommitdiffstats
path: root/arch/xtensa/kernel
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2020-07-02 17:32:25 +0200
committerMax Filippov <jcmvbkbc@gmail.com>2020-07-02 17:35:02 +0200
commit0d5ab144429e8bd80889b856a44d56ab4a5cd59b (patch)
tree0e8965dbda5252a83de61d67d37a8aab93334940 /arch/xtensa/kernel
parentxtensa: fix __sync_fetch_and_{and,or}_4 declarations (diff)
downloadlinux-0d5ab144429e8bd80889b856a44d56ab4a5cd59b.tar.xz
linux-0d5ab144429e8bd80889b856a44d56ab4a5cd59b.zip
xtensa: update *pos in cpuinfo_op.next
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>
Diffstat (limited to 'arch/xtensa/kernel')
-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 d9204dc2656e..be2c78f71695 100644
--- 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