From: Max Filippov Date: Thu, 2 Jul 2020 15:32:25 +0000 (-0700) Subject: xtensa: update *pos in cpuinfo_op.next X-Git-Tag: Ubuntu-5.13.0-19.19~5570^2~1 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0d5ab144429e8bd80889b856a44d56ab4a5cd59b;p=mirror_ubuntu-jammy-kernel.git 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 --- 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