mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-19 11:16:59 +07:00

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>
11 lines
245 B
C
11 lines
245 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _LINUX_BSEARCH_H
|
|
#define _LINUX_BSEARCH_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
void *bsearch(const void *key, const void *base, size_t num, size_t size,
|
|
cmp_func_t cmp);
|
|
|
|
#endif /* _LINUX_BSEARCH_H */
|