]> www.infradead.org Git - users/jedix/linux-maple.git/commit
lib/bsearch: Use generic type for comparator function
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 7 Oct 2019 13:56:55 +0000 (16:56 +0300)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 14 Nov 2019 18:15:11 +0000 (13:15 -0500)
commite8877ec5dbba6f39d25ca3a81716c23b1760f2ee
treeb1782379be54e2b01fb5f4479be27ff756d6553c
parent52ae533b8a18e7ca868e7ac5953ad7258210f320
lib/bsearch: Use generic type for comparator function

Comparator function type, cmp_func_t, is defined in the types.h,
use it in bsearch() and, thus, add more sense to the corresponding
comment in the code.

Link: http://lkml.kernel.org/r/20191007135656.37734-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
include/linux/bsearch.h
lib/bsearch.c