/* The exception table needs to be sorted so that the binary search that we use to find entries in it works properly. This is used both for the kernel exception table and for the exception tables of modules that get loaded.  */
static int cmp_ex(const void *a, const void *b)
/* The exception table needs to be sorted so that the binary search that we use to find entries in it works properly. This is used both for the kernel exception table and for the exception tables of modules that get loaded.  */
static int cmp_ex(const void *a, const void *b)
{
	const struct exception_table_entry *x = a, *y = b;
	if (ex_to_addr(x) > ex_to_addr(y))
		return 1;
	if (ex_to_addr(x) < ex_to_addr(y))
		return -1;
	return 0;
}