From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3BD34C433F5 for ; Thu, 4 Nov 2021 10:07:44 +0000 (UTC) Received: from lists.ozlabs.org (lists.ozlabs.org [112.213.38.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8884960E78 for ; Thu, 4 Nov 2021 10:07:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8884960E78 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=canb.auug.org.au Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.ozlabs.org Received: from boromir.ozlabs.org (localhost [IPv6:::1]) by lists.ozlabs.org (Postfix) with ESMTP id 4HlK7x6qVkz2yPs for ; Thu, 4 Nov 2021 21:07:41 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.a=rsa-sha256 header.s=201702 header.b=isvl7dbJ; dkim-atps=neutral Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 4HlK7C0qqTz2xvc for ; Thu, 4 Nov 2021 21:07:03 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=canb.auug.org.au header.i=@canb.auug.org.au header.a=rsa-sha256 header.s=201702 header.b=isvl7dbJ; dkim-atps=neutral Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4HlK770t1Gz4xbw; Thu, 4 Nov 2021 21:06:59 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1636020421; bh=awT5bBlE5ynUwEEralGSrwt9ezjdXHOlQ81tJVY4khE=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=isvl7dbJmKRaelsWXioQXmkjf4E7VBe87nOvKSM2A6rlPyoqNTtwQqcf287ZgGi8H TFhLjw3sPDYTJL6e2ZohJjVRbBVkZZLCZDQC8XcxIb0Okb/JkQlzHswyIzekKwttgE 9XibYyZ9jvue+BTa2Ndb9qxKcmLlquDKBI+cLmS1IipOQpovJTRU5XSevFvvhE4C10 S9RzEvj7SvIxomSXbDfalToOdErzRNwvpj2kawa8oBSRckss2kMCrHYIeavbWcBlZH 6quyoZQzg4oGvcBQcyCb6+zw4ZrFjZi7lF0N6mRhX4qV5BqCusjTKyR3UtotIu32t1 tzL5isucUalcw== Date: Thu, 4 Nov 2021 21:06:56 +1100 From: Stephen Rothwell To: davidcomponentone@gmail.com Subject: Re: [PATCH] powerpc: use swap() to make code cleaner Message-ID: <20211104210637.3c424bcc@elm.ozlabs.ibm.com> In-Reply-To: <20211104061709.1505592-1-yang.guang5@zte.com.cn> References: <20211104061709.1505592-1-yang.guang5@zte.com.cn> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/R16OcEvAD708zS6cRq.O30G"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: sfr@canb.auug.org.au, 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 Errors-To: linuxppc-dev-bounces+linuxppc-dev=archiver.kernel.org@lists.ozlabs.org Sender: "Linuxppc-dev" --Sig_/R16OcEvAD708zS6cRq.O30G Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, On Thu, 4 Nov 2021 14:17:09 +0800 davidcomponentone@gmail.com wrote: > > From: Yang Guang >=20 > 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. --=20 Cheers, Stephen Rothwell --Sig_/R16OcEvAD708zS6cRq.O30G Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmGDsMAACgkQAVBC80lX 0GzJQQgAg/kH3K8D26DLC1G83icbaaUB7A770GEvFjsQW+93XumOEFQQ/PW9y9Qj SAWzu/UnEGWzoNcxNtrc5zB0IgOHqpg32KkwjK2R46p2h/SogfaWVXD3POrLwMMg w1l2V/36ORlDTbURwwBuPU/790L7ZY8q82Xhhu6AMWcB4Za7TerOrrOhi4+uVP4w fpCAP+6KFhUyHwIvS/uK7AH7BwEugJSjk07b4A6hGwlx/AoloQFIkdmTXZ1jLHkS AVEeq7x2dD18junmwjmXJe09HLEAuqNccA3uRLCS8gL+3tq4iPTc4+bg5lslznis sjJ0cFMBlDbJSaG9hiEwa1IqoOHMvg== =h+K3 -----END PGP SIGNATURE----- --Sig_/R16OcEvAD708zS6cRq.O30G--