Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3066034imm; Mon, 24 Sep 2018 15:15:15 -0700 (PDT) X-Google-Smtp-Source: ACcGV61rp/i20Ya1PUClcKzJyVKKxmykdgaF2l0Ao+lpmSrH1PTyxWtZk2elHkx6clki0elCu9tx X-Received: by 2002:a63:5e46:: with SMTP id s67-v6mr597079pgb.373.1537827315766; Mon, 24 Sep 2018 15:15:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537827315; cv=none; d=google.com; s=arc-20160816; b=zeuNXDQdi2fEyPlBBLVkn1Xd64wdbC9B16Bt/iRmht/bGFE5q2yo6kT1XUFei/YL02 gABvRnwYAlWn30v9rasPpf+iQREKwfJ4vdCWbVtIPvFIcsSjLM7+uRH62Kbz/Ojr6I8h pLcjB6ioPCqjDbBTF0iZCq3Yv1FzN62tw8b5iGiJTmvQ9O3vrDIbzvpNXQlz6hpnWhNI daE6j66sFfZBNQo+xBBNbbQCiKNjHF3nGKh+umrkKHeCJ8+/azYNo8vqnQm4VepF6xwz uwCWd/1PUheI/zhFxBEaAOE8JccxycNae13tFGw96jwkW2EfwBocoL3hWvIs3qlSRNXN SfuA== 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:cc:to:from :subject:dkim-signature; bh=msSpCikK06xSGPffaIIRyC8S1/YcM727fKdgmkOmL2M=; b=cu+KyPoR1izze9OMsSOPEbiOWQGkZ4fQie61snjRGHd9yUYwB6x7NGVt3MsWrBBrW/ zPDckiVKEIV4HN8kB7aWgAdnlgSxIqG6BIY4ZwRDcOrFf/Rtn87jX6OmtLVfJcWV6R1G qXraRcigTwus5Kj41AoUzpokonYPIPbM20KApNFzEWw1WsrP9uKTw6K0zkuyMvoMr7Pl or+t+bASbQFqWEQhRHkz3bewcFEd5gMCrh5b2hqb4/SxM4x4PX1YF1DCYsHpwlFeqYB7 nNuKZonSDSc/WGkcjahtHhvfXf68h9J7Z4X47zOiDrqa7FXRDyA6d69kBmHwSwdBtc0f mvVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NyEiCM36; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c24-v6si477795pgj.321.2018.09.24.15.14.55; Mon, 24 Sep 2018 15:15:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=NyEiCM36; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728189AbeIYETD (ORCPT + 99 others); Tue, 25 Sep 2018 00:19:03 -0400 Received: from mail.kernel.org ([198.145.29.99]:45810 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725743AbeIYETD (ORCPT ); Tue, 25 Sep 2018 00:19:03 -0400 Received: from localhost (unknown [69.71.4.100]) (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 9F4CC208D9; Mon, 24 Sep 2018 22:14:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1537827281; bh=fBpjm1v+gsCP+i0e8xACsHU5USa/118ivjGUWsBOhhM=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=NyEiCM36UasQ0iYMdLiBTCUkI8Iatfs47nj4alWJYxnOutqzPcQ0Fg0jV8leA6GMe UMHHtJphr1FUsWAEYe+3/oMVJhwVsnPl4pYJyfeyIOE5gqZ8yETTCSPgP+S9BAG2mf hN+zmz9pjEnVVN21/hYBLXBT7PUO5KiIbSpuic9g= Subject: [PATCH 0/3] find_next_iomem_res() fixes From: Bjorn Helgaas To: Lianbo Jiang Cc: Vivek Goyal , linux-kernel@vger.kernel.org, kexec@lists.infradead.org, tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, akpm@linux-foundation.org, dan.j.williams@intel.com, thomas.lendacky@amd.com, baiyaowei@cmss.chinamobile.com, tiwai@suse.de, bp@suse.de, brijesh.singh@amd.com, dyoung@redhat.com, bhe@redhat.com Date: Mon, 24 Sep 2018 17:14:37 -0500 Message-ID: <153782698067.130337.12079523922130875402.stgit@bhelgaas-glaptop.roam.corp.google.com> In-Reply-To: <20180921073211.20097-2-lijiang@redhat.com> References: <20180921073211.20097-2-lijiang@redhat.com> User-Agent: StGit/0.18 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lianbo, These three patches are a possible replacement for your first patch ("[PATCH 1/3 v3] resource: fix an error which walks through iomem resources"). I think the interface of find_next_iomem_res() can be improved to make the code easier to read and also avoid the errors you're fixing. I can't test these, so they've only been compiled. If you can test them and if you like them, feel free to incorporate them into your series. If not, just drop them (but please at least fix the same error in walk_system_ram_range()). --- Bjorn Helgaas (3): x86/kexec: Correct KEXEC_BACKUP_SRC_END off-by-one error resource: Include resource end in walk_*() interfaces resource: Fix find_next_iomem_res() iteration issue arch/x86/include/asm/kexec.h | 2 - kernel/resource.c | 96 ++++++++++++++++++------------------------ 2 files changed, 43 insertions(+), 55 deletions(-)