[PATCH v2 01/13 6.1.y] minmax: make generic MIN() and MAX() macros available everywhere