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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 14 Sep 2014 18:40:13 +0200
Fabian Frederick <fabf@xxxxxxxxx> 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
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux