lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20211104113351.GK614@gate.crashing.org>
Date:   Thu, 4 Nov 2021 06:33:51 -0500
From:   Segher Boessenkool <segher@...nel.crashing.org>
To:     Stephen Rothwell <sfr@...b.auug.org.au>
Cc:     davidcomponentone@...il.com, sxwjean@...il.com,
        Zeal Robot <zealci@....com.cn>, linux-kernel@...r.kernel.org,
        nathan@...nel.org, yang.guang5@....com.cn, paulus@...ba.org,
        aneesh.kumar@...ux.ibm.com, linuxppc-dev@...ts.ozlabs.org
Subject: Re: [PATCH] powerpc: use swap() to make code cleaner

On Thu, Nov 04, 2021 at 09:06:56PM +1100, Stephen Rothwell wrote:
> On Thu,  4 Nov 2021 14:17:09 +0800 davidcomponentone@...il.com wrote:
> > From: Yang Guang <yang.guang5@....com.cn>
> > 
> > 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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ