On Sun, Apr 27, 2025 at 11:14:49PM +0300, Fedor Pchelkin wrote: > Deduplicate the same functionality implemented in several places by > moving the cmp_int() helper macro into linux/sort.h. > > The macro performs a three-way comparison of the arguments mostly useful > in different sorting strategies and algorithms. > > Suggested-by: Darrick J. Wong <djwong@xxxxxxxxxx> > Signed-off-by: Fedor Pchelkin <pchelkin@xxxxxxxxx> Acked-by: Kent Overstreet <kent.overstreet@xxxxxxxxx>