From: Oleg Nesterov Date: Tue, 12 Nov 2013 23:10:01 +0000 (-0800) Subject: list: introduce list_next_entry() and list_prev_entry() X-Git-Tag: v3.13-rc1~106^2~92 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=008208c6b26f21c2648c250a09c55e737c02c5f8;p=pandora-kernel.git list: introduce list_next_entry() and list_prev_entry() Add two trivial helpers list_next_entry() and list_prev_entry(), they can have a lot of users including list.h itself. In fact the 1st one is already defined in events/core.c and bnx2x_sp.c, so the patch simply moves the definition to list.h. Signed-off-by: Oleg Nesterov Cc: Eilon Greenstein Cc: Greg Kroah-Hartman Cc: Peter Zijlstra Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed