Re: [PATCH 1/9] lib/sort.c: implement sort() variant taking context argument

2019-07-26 Thread Rasmus Villemoes
On 26/07/2019 02.05, Andrew Morton wrote: > On Wed, 19 Jun 2019 14:15:32 +0200 Boris Brezillon > wrote: > >> From: Rasmus Villemoes >> >> Our list_sort() utility has always supported a context argument that >> is passed through to the comparison routine. Now there's a use case >> for the

Re: [PATCH 1/9] lib/sort.c: implement sort() variant taking context argument

2019-07-25 Thread Andrew Morton
On Wed, 19 Jun 2019 14:15:32 +0200 Boris Brezillon wrote: > From: Rasmus Villemoes > > Our list_sort() utility has always supported a context argument that > is passed through to the comparison routine. Now there's a use case > for the similar thing for sort(). > > This implements sort_r by

Re: [PATCH 1/9] lib/sort.c: implement sort() variant taking context argument

2019-07-25 Thread Boris Brezillon
Hi Andrew, On Wed, 19 Jun 2019 14:15:32 +0200 Boris Brezillon wrote: > From: Rasmus Villemoes > > Our list_sort() utility has always supported a context argument that > is passed through to the comparison routine. Now there's a use case > for the similar thing for sort(). > > This implements

[PATCH 1/9] lib/sort.c: implement sort() variant taking context argument

2019-06-19 Thread Boris Brezillon
From: Rasmus Villemoes Our list_sort() utility has always supported a context argument that is passed through to the comparison routine. Now there's a use case for the similar thing for sort(). This implements sort_r by simply extending the existing sort function in the obvious way. To avoid