Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4890485pjb; Mon, 27 Jul 2020 07:42:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsBTUvGvpZW23n+y4bVQJoB8WIczkXRUKXxgkUo6wcqy4DUnc7zYSwd6TP3u2220LlGtxG X-Received: by 2002:a50:bb48:: with SMTP id y66mr20839266ede.147.1595860948077; Mon, 27 Jul 2020 07:42:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595860948; cv=none; d=google.com; s=arc-20160816; b=fJEdUjOJCJi6Z5qqfLmaaSvAebPiLihQc1IPikoql0csh/ZPK2YV58/3kQgD0IyT+l MZtvSwGkrPYQr5pu57IvVOgdQEFX6wzeQkMZ4CwdavpBKo2OzYUXVGQrOQGqnxEfUxzw 0xdZQGXo1d/4X10HC8ViBZ8lNrhG8L9THnnWry+y60OK8/ngQ7u3NsEq9jfa5ucY0B0m W2UEsh9FqgC1g2dxxhpFmDuQulUMA0pcbc799lvrmo6/3in1KfH+PCYw+ffR9HRTWdNB 9C8h7X5Ihsv92wzCSOZ/XcKFE2Pu8hbjWSYJDFBvRMuPejHg9/6EWbHuELHZps21YqWn wWwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lZJIViPzIJ3UUXBg5uOXFoWDKUnruizUF86ynkK91kg=; b=uc6wu075stMMiuWoxtFv0xTnd78crS99vMdx6BaLvuqVGttH+geJTOVwgB6n0QATXg UWOJlv8c0cN6uRrB6LeZW0trYCTEhmhNHdWOn+qZ1CFx3VfdLWRRoKzQkhXJyRB/5Q+u TQ+l4kFgptBvf3K17UzFg1l6M6cG2peTAzz8i1U9h9EA9i3hLvLSz0pyC3lNTBX/rgto qSXtd+svDoN1OJLLiPHrBZwXlC0B+vQbN2t/8sHL+nKbBVS7NJQrbkEvBPXu8OVkHfJN vOqSIdegWtN47XiTkx/IMvGmaVXTiYAiT2Ea4J6oVTw/qA9BREjZmZ41YX4oGE8l/IIA Akbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="zph/xzub"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gg21si5437211ejb.694.2020.07.27.07.42.05; Mon, 27 Jul 2020 07:42:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="zph/xzub"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732865AbgG0OjA (ORCPT + 99 others); Mon, 27 Jul 2020 10:39:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:32972 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729802AbgG0OKR (ORCPT ); Mon, 27 Jul 2020 10:10:17 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B27F220838; Mon, 27 Jul 2020 14:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859017; bh=rGyKxKZX6b3Ow+n3+T9s6BHBuaad/6NgYACL9wTGXrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zph/xzub2uUz3JHfDZh21W0QXwsLkUENjKg3PDq2i8JgLcmyVnzP+u5FKKR4v1MuH PpnHWSqPM9VlG2ylBread3jOyOEgYepDMcqKGe22SEw5pSjzznCR/NPtQ318ARYzUM mRhVsaH0n3G3+gD/aakEQ94B7Ikq2/1qGc2SQkVo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov , Sasha Levin Subject: [PATCH 4.19 08/86] xtensa: update *pos in cpuinfo_op.next Date: Mon, 27 Jul 2020 16:03:42 +0200 Message-Id: <20200727134914.765381034@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134914.312934924@linuxfoundation.org> References: <20200727134914.312934924@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Max Filippov [ 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 Signed-off-by: Sasha Levin --- arch/xtensa/kernel/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/kernel/setup.c b/arch/xtensa/kernel/setup.c index 15580e4fc766a..6a0167ac803c6 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c @@ -720,7 +720,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 -- 2.25.1