Use min_t() instead of min() in fs/xfs/support/qsort.c
PATCH 1/1 Use min_t() instead of min() in fs/xfs/support/qsort.c
This change removes a "duplicate 'const'" compiler warning.
fs/xfs/support/qsort.c +1 -1
@@ -199,7 +199,7 @@ {char *const end_ptr = &base_ptr[size * (total_elems -1 )];char *tmp_ptr = base_ptr; -char *thresh =min (end_ptr, base_ptr + max_thresh); + char *thresh = min_t(const int, end_ptr, base_ptr + max_thresh); registerchar *run_ptr;/* Find smallest element in first threshold and place it at the
Signature · 2 lines
Bob Miller Email: [email protected] Open Source Development Lab Phone: 503.626.2455 Ext. 17