Re: [PATCH v2 4/8] klist: implement klist_prev()

2015-05-31 Thread Greg Kroah-Hartman
On Mon, May 25, 2015 at 07:09:28PM +0300, Andy Shevchenko wrote: > klist_prev() gets the previous element in the list. It is useful to traverse > through the list in reverse order, for example, to provide LIFO (last in first > out) variant of access. > > Signed-off-by: Andy Shevchenko > ---

Re: [PATCH v2 4/8] klist: implement klist_prev()

2015-05-31 Thread Greg Kroah-Hartman
On Mon, May 25, 2015 at 07:09:28PM +0300, Andy Shevchenko wrote: klist_prev() gets the previous element in the list. It is useful to traverse through the list in reverse order, for example, to provide LIFO (last in first out) variant of access. Signed-off-by: Andy Shevchenko

[PATCH v2 4/8] klist: implement klist_prev()

2015-05-25 Thread Andy Shevchenko
klist_prev() gets the previous element in the list. It is useful to traverse through the list in reverse order, for example, to provide LIFO (last in first out) variant of access. Signed-off-by: Andy Shevchenko --- include/linux/klist.h | 1 + lib/klist.c | 41

[PATCH v2 4/8] klist: implement klist_prev()

2015-05-25 Thread Andy Shevchenko
klist_prev() gets the previous element in the list. It is useful to traverse through the list in reverse order, for example, to provide LIFO (last in first out) variant of access. Signed-off-by: Andy Shevchenko andriy.shevche...@linux.intel.com --- include/linux/klist.h | 1 + lib/klist.c