Received: by 2002:a17:90b:8d0:0:0:0:0 with SMTP id ds16csp4874988pjb; Mon, 27 Jul 2020 07:21:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWnUfZISX+AedbxAQgZDH1Ip45PuBAtg/cX+2QXDIiWRjHKBvutdOr+9+t8M9lfdp3Yvvp X-Received: by 2002:a50:fd8d:: with SMTP id o13mr1906419edt.313.1595859685627; Mon, 27 Jul 2020 07:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595859685; cv=none; d=google.com; s=arc-20160816; b=Rh90s5zY49hB38CHzH4HzFTqDaEksS7fkBvJn+40i+s5ADgiVZlNN8DgbxRX3FfeXl 7SwHsCVb6TVjpayQYG0Q/dGigsrRzx6qomi63rj1mjHdJc/5froR1Hrcn1ZUC2UGx82f H/zHXOMXh7tJc4alykqwnlQ4w3SL5n53v5ITB0SqygdbG0Aik0NapO9P41rey8NmM1Rr tmjU7+Mz02iheyWVTOjCUxcflxHP5jUumE+bChQ5XhAMI1Xm1HjC5UXLsYProy0wZftC NHa7eNECFeBoPhTfS9ix5Flse88/GI/VwGhntz8PM4qKmfDsVPE+KsHsHWzmMtpb9hoS O6eQ== 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=Z2hw+tdjnrueUAWGfT5h1sUNmbYOi6dfLmsx28PhSxo=; b=peoCnZLACpcj593AR7J7rAfGpKNvAZCd0vsYx7t6T7L7O5VNDHz0X3USuKIcQGdgL7 9g5H6uMiiJK/KhKP9juH4KMYWHRmZZF9utfcFExJBtE5sU7eOZHiJIdtXaZOFSiqmv6V pDI6QuRCNCuX/rymyj1qZSDJccQCJ0iN9sgxSZz6sN6yQ2rI8B6egUggjEeiEfXAuM4J zesVn7KDZ3mANx3yVPeDapZ8wJnrwZHK9dJdPswVLjdQu77vwXD1yFMnlJKpEY/SjaCj cAI5rMJ/eUBWLblU4nETL4AuPy1581cW2qnNskXGU3uNmMOer+x+zVa1AKbfV4RvmyCq P1yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="SGn/OFKa"; 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 df18si5623507edb.501.2020.07.27.07.21.03; Mon, 27 Jul 2020 07:21:25 -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="SGn/OFKa"; 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 S1731428AbgG0OTk (ORCPT + 99 others); Mon, 27 Jul 2020 10:19:40 -0400 Received: from mail.kernel.org ([198.145.29.99]:47556 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731412AbgG0OTc (ORCPT ); Mon, 27 Jul 2020 10:19:32 -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 3CD5B2075A; Mon, 27 Jul 2020 14:19:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595859571; bh=+WYxyi+AOvztptYdGA3lxwywnVFETA0l0WA73vufv+0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SGn/OFKapdeSkhfLPYv0Tssubnb9NYF4lFYsXC3gG8GUR1MbQQgqrPeLunx42QoG5 ltG2Ap3eEouOJ5COn9ORyV6/J9yuwsKtFt2/U55x3GEJCVlqSHPcgve2vVDAQT03Vq XzwXb414tC/bukYF9wvG99KtHkYoZaN3v8+GkdiY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Max Filippov , Sasha Levin Subject: [PATCH 5.7 009/179] xtensa: update *pos in cpuinfo_op.next Date: Mon, 27 Jul 2020 16:03:04 +0200 Message-Id: <20200727134933.128600498@linuxfoundation.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200727134932.659499757@linuxfoundation.org> References: <20200727134932.659499757@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 3880c765d4489..0271e2e47bcdf 100644 --- a/arch/xtensa/kernel/setup.c +++ b/arch/xtensa/kernel/setup.c @@ -725,7 +725,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