On Tue, Jul 16, 2024 at 10:51:58AM -0700, SeongJae Park wrote: > Commit 310d6c15e910 ("mm/damon/core: merge regions aggressively when > max_nr_regions") causes a build warning [1] on 6.1.y. That was due to > unnecessarily strict type check from max(). > > Fix the warning by backporting a minmax.h upstream commit that made the > type check less strict for unnecessary case, and upstream commits that > it depends on. > > Note that all patches except the third one ("minmax: fix header > inclusions") are clean cherry-picks of upstream commit. For the third > one, a minor conflict fix was needed. > > [1] https://lore.kernel.org/2024071519-janitor-robe-779f@gregkh Thanks for these, I'll queue them up after this round of -rc releases go out in a few days. greg k-h