Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2564644pxb; Sun, 31 Oct 2021 19:26:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxR8Zo44dzz4jQx33VMpj/p9VtSyltxZFiSZ+QUeL1gi4XL2m/DX8cJ7yN6Y2O9k0LhSf1y X-Received: by 2002:a17:907:939:: with SMTP id au25mr32446360ejc.166.1635733574454; Sun, 31 Oct 2021 19:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635733574; cv=none; d=google.com; s=arc-20160816; b=y/Ik+4YJxAcjV7aVUgGsZh2V7oVzUZmw1LoC62LsmYPDUnCecVcENeW3Qh7B2H32pd rI7OymiIoGjPx5mwsZCRS+zSwgyggUuM/yxbUsc3PHaTa0ue89Z6sfFZfdD1K1Db0jyX iM7QQiB+DgYpDh2BpWYuysUeWUYdyIJ6bqDdH4WT7WUYaz/R4OI+sqGUK8POHsZOMoDB V8pJwg/lEDES78/KAVtu76lXanR6Uzzbby4ZSY/4kbN/NaHz5cQ91v9fa2U79UkW0+hk ciHkw1gGwkOz1X0NauphO6XR03/0TjljlJQeL4qQ+RvyPhi7bGobrT/GqrlEpQAPVHj1 dL+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Q6ZAJzHp/d1wIOZgcMMjKOzpX1S/wfI1y2rL7tlK/iU=; b=SHM8sMmXjMxyiARIKG8a90qeTYSKmKwh/WjnWkDwE+S6b3LdZFlmwnyjyWSec/+RT1 W3RtyCkd1EjJHW7q2J0FxyZz+KnMBK/ns/xUq/BFR+wbb9bIIJ3v75yekmolBlPzffz3 JW0EuPWGHO0tpS1ayTJZOo+acSsZHPH6iDiDSi6H6yhrbYadW/KW7zK9SzZ02zh8gqQm +4jLgD0aTr7KwDTb6bJW1TAycn1oO0Qu58h6v2CvSsFpcdTlc6tb45B/f6+L0bA2L+Gd UeKMYyM8j2qhLGSgj9+woQcC4Fvb85cEK0bts+vHRbEuoMB/p+/+mcBme+SSCII0FhS7 0eyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=Yzn6agCs; 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 e10si24530508edj.362.2021.10.31.19.25.51; Sun, 31 Oct 2021 19:26:14 -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=@infradead.org header.s=casper.20170209 header.b=Yzn6agCs; 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 S230246AbhKAC0o (ORCPT + 99 others); Sun, 31 Oct 2021 22:26:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230222AbhKAC0n (ORCPT ); Sun, 31 Oct 2021 22:26:43 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F4BAC061714; Sun, 31 Oct 2021 19:24:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Q6ZAJzHp/d1wIOZgcMMjKOzpX1S/wfI1y2rL7tlK/iU=; b=Yzn6agCs5K0Y375M4heXim/QCw QMO4liQGIzBYe9AaPTh8+bycDFE95CeuIYay74lJkQ3eV+e/vGugfR/MCCkpYiWnQjw/zHd/J0VVb fe8eCRnjoPHHd+nE9tuLQO+J/IDzPDdG2jFbqCzd1jKrMfZdKWjgOPe1T8bQzWyAFbTAbUA/jDQdb JBKGH+V7pHQysa8SKaqdxgseZk0GxM/iIfNnprcZFCdBm84gOvUHqS5Z9a86mMAJm/c/LRaSFG7/Q wSvqDwy25ZkI6rAQenBZJ5feEhxwaWnU5sb643HkSlgAVn26VTg6bXNefooExYxCGikYWSf6CVqOq fZvjmB2g==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1mhMxA-003SE6-AM; Mon, 01 Nov 2021 02:21:57 +0000 Date: Mon, 1 Nov 2021 02:21:40 +0000 From: Matthew Wilcox To: Yihao Han Cc: "James E.J. Bottomley" , Helge Deller , Kefeng Wang , David Hildenbrand , Christophe Leroy , Sven Schnelle , linux-parisc@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@vivo.com Subject: Re: [PATCH] parisc: using swap() instead of tmp Message-ID: References: <20211101021047.22945-1-hanyihao@vivo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211101021047.22945-1-hanyihao@vivo.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Oct 31, 2021 at 07:10:45PM -0700, Yihao Han wrote: > @@ -127,16 +127,13 @@ static void __init setup_bootmem(void) > int j; > > for (j = i; j > 0; j--) { > - physmem_range_t tmp; > If you're going to delete that line, you should also delete the blank line after it. > if (pmem_ranges[j-1].start_pfn < > pmem_ranges[j].start_pfn) { > > break; > } > - tmp = pmem_ranges[j-1]; > - pmem_ranges[j-1] = pmem_ranges[j]; > - pmem_ranges[j] = tmp; > + swap(pmem_ranges[j-1], pmem_ranges[j]); > } > } > > -- > 2.17.1 >