[PATCH 0/9 linux-next] drivers/gpu/drm: use container_of where possible

One Thousand Gnomes gnomes at lxorguk.ukuu.org.uk
Sun Sep 14 16:13:56 PDT 2014


On Sun, 14 Sep 2014 18:40:13 +0200
Fabian Frederick <fabf at skynet.be> wrote:

> Small patchset using container_of instead of casting on first structure member address.

Why. Container_of is useful for random offsets but its just convoluting
and confusing code which is designed with the fields intentionally at the
start.

Alan


More information about the dri-devel mailing list