summaryrefslogtreecommitdiff
path: root/include/linux/bsearch.h
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-10-07 16:56:55 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2019-11-14 13:15:11 -0500
commite8877ec5dbba6f39d25ca3a81716c23b1760f2ee (patch)
treeb1782379be54e2b01fb5f4479be27ff756d6553c /include/linux/bsearch.h
parent52ae533b8a18e7ca868e7ac5953ad7258210f320 (diff)
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>
Diffstat (limited to 'include/linux/bsearch.h')
-rw-r--r--include/linux/bsearch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/bsearch.h b/include/linux/bsearch.h
index 62b1eb348858..8ed53d7524ea 100644
--- a/include/linux/bsearch.h
+++ b/include/linux/bsearch.h
@@ -5,6 +5,6 @@
#include <linux/types.h>
void *bsearch(const void *key, const void *base, size_t num, size_t size,
- int (*cmp)(const void *key, const void *elt));
+ cmp_func_t cmp);
#endif /* _LINUX_BSEARCH_H */