From 802903c8cf90f84248b31dd7776ecce148bb7b9c Mon Sep 17 00:00:00 2001 From: Kent Overstreet Date: Mon, 9 Jun 2025 17:34:47 -0400 Subject: Update bcachefs sources to a8d89eb264e0 bcachefs: Allow CONFIG_UNICODE=m Signed-off-by: Kent Overstreet --- include/linux/sort.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/linux/sort.h') diff --git a/include/linux/sort.h b/include/linux/sort.h index 09519a90..d8a86590 100644 --- a/include/linux/sort.h +++ b/include/linux/sort.h @@ -4,6 +4,16 @@ #include #include +/** + * cmp_int - perform a three-way comparison of the arguments + * @l: the left argument + * @r: the right argument + * + * Return: 1 if the left argument is greater than the right one; 0 if the + * arguments are equal; -1 if the left argument is less than the right one. + */ +#define cmp_int(l, r) (((l) > (r)) - ((l) < (r))) + void sort_r(void *base, size_t num, size_t size, cmp_r_func_t cmp_func, swap_r_func_t swap_func, -- cgit v1.2.3