[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <acb25476-f5d1-3dfd-8e76-1a582b63dada@arm.com>
Date: Fri, 21 Jul 2023 11:14:42 +0100
From: Ryan Roberts <ryan.roberts@....com>
To: "Matthew Wilcox (Oracle)" <willy@...radead.org>,
Andrew Morton <akpm@...ux-foundation.org>
Cc: linux-arch@...r.kernel.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v5 01/38] minmax: Add in_range() macro
On 10/07/2023 21:43, Matthew Wilcox (Oracle) wrote:
> Determine if a value lies within a range more efficiently (subtraction +
> comparison vs two comparisons and an AND). It also has useful (under
> some circumstances) behaviour if the range exceeds the maximum value of
> the type.
Sorry it's taken me a while to looking at this.
I'm getting a lot of warnings about in_range() being redefined when building
arm64 (defconfig-ish) with this patch set on top of v6.5-rc2.
Looks like there are multiple existing implementations.
Thanks,
Ryan
Powered by blists - more mailing lists