]> git.baikalelectronics.ru Git - kernel.git/commit
lib/sort: Move swap, cmp and cmp_r function types for wider use
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 7 Oct 2019 13:56:54 +0000 (16:56 +0300)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 14 Nov 2019 18:15:11 +0000 (13:15 -0500)
commitb5e8586c9ba647559dc3f077ece5e3dcae9ecef2
treee0263ad9869fdb9fbb3c405eb5f14640ac64570e
parent604bb8e5fcfb46bd263a92b2ac2e139270a3fd3c
lib/sort: Move swap, cmp and cmp_r function types for wider use

The function types for swap, cmp and cmp_r functions are already
being in use by modules.

Move them to types.h that everybody in kernel will be able to use
generic types instead of custom ones.

This adds more sense to the comment in bsearch() later on.

Link: http://lkml.kernel.org/r/20191007135656.37734-1-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/sort.h
include/linux/types.h
lib/sort.c