> 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
On Mon, Sep 15, 2014 at 08:15:54PM +0200, Fabian Frederick wrote:
>
>
> > On 15 September 2014 at 01:13 One Thousand Gnomes
> >
> > wrote:
> >
> >
> > On Sun, 14 Sep 2014 18:40:13 +0200
> > Fabian Frederick wrote:
> >
> > > Small patchset using container_of instead of casting on first structur
> On 15 September 2014 at 01:13 One Thousand Gnomes
> wrote:
>
>
> On Sun, 14 Sep 2014 18:40:13 +0200
> Fabian Frederick 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 convo
On Sun, 14 Sep 2014 18:40:13 +0200
Fabian Frederick 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 th
Small patchset using container_of instead of casting on first structure member
address.
Fabian Frederick (9):
drm/cirrus: use container_of to resolve cirrus_fbdev from
drm_fb_helper
drm/mgag200: use container_of to resolve mga_fbdev from drm_fb_helper
drm/radeon: use container_of to res
5 matches
Mail list logo