2005-03-10 18:23:01

by Chris Wedgwood

[permalink] [raw]
Subject: [PATCH] silence sort(..., swap) warning on ia64

Not tested but seems plausible :-)

===== arch/ia64/mm/extable.c 1.11 vs edited =====
--- 1.11/arch/ia64/mm/extable.c 2005-03-07 20:41:46 -08:00
+++ edited/arch/ia64/mm/extable.c 2005-03-10 10:14:55 -08:00
@@ -20,7 +20,7 @@ static int cmp_ex(const void *a, const v
return lip - rip;
}

-static void swap_ex(void *a, void *b)
+static void swap_ex(void *a, void *b, int _unused_size)
{
struct exception_table_entry *l = a, *r = b, tmp;
u64 delta = (u64) r - (u64) l;


2005-03-10 19:59:37

by Matt Mackall

[permalink] [raw]
Subject: Re: [PATCH] silence sort(..., swap) warning on ia64

On Thu, Mar 10, 2005 at 10:18:35AM -0800, Chris Wedgwood wrote:
> Not tested but seems plausible :-)

Yep, this was pointed out to me yesterday.

> -static void swap_ex(void *a, void *b)
> +static void swap_ex(void *a, void *b, int _unused_size)

--
Mathematics is the supreme nostalgia of our time.