]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm: Add drm_mm_for_each_node_safe()
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 16 Dec 2016 07:46:41 +0000 (07:46 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 16 Dec 2016 13:31:06 +0000 (14:31 +0100)
commitad579002c8ec429930721c5bb8bd763e6c0c6286
tree27c789dc98b2b341ea0c48336c460133a34be228
parent56e3d1cd05cc7b24cfcae8714b0661bf607aaba3
drm: Add drm_mm_for_each_node_safe()

A complement to drm_mm_for_each_node(), wraps list_for_each_entry_safe()
for walking the list of nodes safe against removal.

Note from Joonas:

"Most of the diff is about __drm_mm_nodes(mm), which could be split into
own patch and keep the R-b's."

But I don't feel like insisting on the resend.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
[danvet: Add note.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161216074718.32500-4-chris@chris-wilson.co.uk
drivers/gpu/drm/drm_mm.c
include/drm/drm_mm.h