[PATCH v2 00/19 5.15.y] Backport minmax.h updates from v6.17-rc7