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

One Thousand Gnomes gnomes at lxorguk.ukuu.org.uk
Wed Sep 17 03:49:16 PDT 2014


> What if someone doesn't know about that intention one day and inserts
> some field in the structure at the "wrong place" ?

Then we have code review. Also they are much more likely to simply change
the code elsewhere and break it. Nobody afaik ever got this wrong, while
the litany of other broken patches and bugs introduced into the same code
is lagre.

The goal of the kernel is not to be foolproof to developer incompetence -
that's a battle you can't win until you replace driver developers with
software systems.

Alan


More information about the dri-devel mailing list