Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1562267pxb; Thu, 4 Nov 2021 04:42:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVzPAfRulBfiUCMFvNH6zLus+KP6E3VlS8DnGYY2i39kOKTYD86RKYmED8RoskZNzECQyh X-Received: by 2002:a17:906:a217:: with SMTP id r23mr61663497ejy.548.1636026168533; Thu, 04 Nov 2021 04:42:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636026168; cv=none; d=google.com; s=arc-20160816; b=sGU75H8E1vSyJiAnlziEN/l4I8aSmz3AHPaUi9OxN6vWVtl1FJp0z0c9uMoJxa6cM9 xp0WaosiYqxWYTRBkSChXhRr/1w71w7BYjYr7gPHtYjR1pjdA7i/yU/mpzznOv31+pHU 3njvxB8ssvMQhJndovOM0kZ7v6OGxC4+iVAyWaTMWkZY3QqXzhsCAJx28V0NzKE7o+r7 X7hitoZI61Q/Zdh+/onxvvD0SKUbtdu4yYXxjrSnAlCmYYgU31lHmxPDejzLXsR/+wG4 G4MzBRXLm+PxW3QLbx1uT6trSJcSokxZN+ZikTFNn1qb5VRSRGoO5MEpAVRacEM4EKsh p9oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Qc9KFS9Tx50W22h3cepdnUerUsU78roEWdX1iGBfFQE=; b=gT511pYK4VK/OeFVJ0Xj4u8hHMyxXPTTckES1ryzVrbOD4AVuOsQkJXz4fCVycrHiz hk6T52v17NwEI+g7jLh0kK2mzGUgyAtFMTbnJIrGrjgBLI7sshF14g1oYdS9/owAoo0y lXGkSjS3S521MFwgUa7d92Y65hr+1cuShrCe8OhRoX5bKB0bvCZQExqUPKCyMw0f1uO1 JYJUP8m+OejSfzl2ReSpW5h/in1EIqGSKF29H+AHl8XNDp4S48sugpKj2Qvnipescubf bV3US2xxEaCx8i4mCVhHsohDqV18Ucl49FW6lreKMBkTbWdI2SJ2VGEQwoIsKXzXW65c I/ww== ARC-Authentication-Results: i=1; mx.google.com; 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 h4si11133731ede.281.2021.11.04.04.42.25; Thu, 04 Nov 2021 04:42:48 -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; 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 S231340AbhKDLnD (ORCPT + 99 others); Thu, 4 Nov 2021 07:43:03 -0400 Received: from gate.crashing.org ([63.228.1.57]:45822 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229843AbhKDLnC (ORCPT ); Thu, 4 Nov 2021 07:43:02 -0400 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 1A4BXrIY010918; Thu, 4 Nov 2021 06:33:53 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 1A4BXpu3010915; Thu, 4 Nov 2021 06:33:51 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Thu, 4 Nov 2021 06:33:51 -0500 From: Segher Boessenkool To: Stephen Rothwell Cc: davidcomponentone@gmail.com, sxwjean@gmail.com, Zeal Robot , linux-kernel@vger.kernel.org, nathan@kernel.org, yang.guang5@zte.com.cn, paulus@samba.org, aneesh.kumar@linux.ibm.com, linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH] powerpc: use swap() to make code cleaner Message-ID: <20211104113351.GK614@gate.crashing.org> References: <20211104061709.1505592-1-yang.guang5@zte.com.cn> <20211104210637.3c424bcc@elm.ozlabs.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211104210637.3c424bcc@elm.ozlabs.ibm.com> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 04, 2021 at 09:06:56PM +1100, Stephen Rothwell wrote: > On Thu, 4 Nov 2021 14:17:09 +0800 davidcomponentone@gmail.com wrote: > > From: Yang Guang > > > > Use the macro 'swap()' defined in 'include/linux/minmax.h' to avoid > > opencoding it. > > So if swap() is in the above include file, then you should include it. It is included from kernel.h already (which is included from delay.h). Segher