Re: [Mesa-dev] question about container_of

2017-04-21 Thread Nicolai Hähnle
On 20.04.2017 18:32, Emil Velikov wrote: On 18 April 2017 at 13:55, Pekka Paalanen wrote: On Mon, 27 Feb 2017 13:26:11 + Emil Velikov wrote: Hi Julien, On 27 February 2017 at 12:08, Julien Isorce wrote: Hi,

Re: [Mesa-dev] question about container_of

2017-04-20 Thread Kristian H. Kristensen
Emil Velikov writes: > On 18 April 2017 at 13:55, Pekka Paalanen wrote: >> On Mon, 27 Feb 2017 13:26:11 + >> Emil Velikov wrote: >> >>> Hi Julien, >>> >>> On 27 February 2017 at 12:08, Julien Isorce

Re: [Mesa-dev] question about container_of

2017-04-20 Thread Emil Velikov
On 18 April 2017 at 13:55, Pekka Paalanen wrote: > On Mon, 27 Feb 2017 13:26:11 + > Emil Velikov wrote: > >> Hi Julien, >> >> On 27 February 2017 at 12:08, Julien Isorce wrote: >> > Hi, >> > >> > Since 2012 commit

Re: [Mesa-dev] question about container_of

2017-04-18 Thread Pekka Paalanen
On Mon, 27 Feb 2017 13:26:11 + Emil Velikov wrote: > Hi Julien, > > On 27 February 2017 at 12:08, Julien Isorce wrote: > > Hi, > > > > Since 2012 commit ccff74971203b533bf16b46b49a9e61753f75e6c it is said: > > "sample must be initialized,

Re: [Mesa-dev] question about container_of

2017-02-27 Thread Emil Velikov
Hi Julien, On 27 February 2017 at 12:08, Julien Isorce wrote: > Hi, > > Since 2012 commit ccff74971203b533bf16b46b49a9e61753f75e6c it is said: > "sample must be initialized, or else the result is undefined" in the > description of mesa/src/util/list.h::container_of . > >

[Mesa-dev] question about container_of

2017-02-27 Thread Julien Isorce
Hi, Since 2012 commit ccff74971203b533bf16b46b49a9e61753f75e6c it is said: "sample must be initialized, or else the result is undefined" in the description of mesa/src/util/list.h::container_of . But I can find a few places where it is used without initializing that second parameter, i.e. like: