On 23/05/17 14:23, Ian Abbott wrote:
On 23/05/17 13:02, Ian Abbott wrote:
On 23/05/17 12:24, Peter Zijlstra wrote:
On Tue, May 23, 2017 at 11:32:02AM +0100, Ian Abbott wrote:
#define container_of(ptr, type, member) (\
_Static_assert(__builtin_types_compatible_p(
On 23/05/17 14:23, Ian Abbott wrote:
On 23/05/17 13:02, Ian Abbott wrote:
On 23/05/17 12:24, Peter Zijlstra wrote:
On Tue, May 23, 2017 at 11:32:02AM +0100, Ian Abbott wrote:
#define container_of(ptr, type, member) (\
_Static_assert(__builtin_types_compatible_p(
On 23/05/17 13:02, Ian Abbott wrote:
On 23/05/17 12:24, Peter Zijlstra wrote:
On Tue, May 23, 2017 at 11:32:02AM +0100, Ian Abbott wrote:
#define container_of(ptr, type, member) (\
_Static_assert(__builtin_types_compatible_p(\
typeof(*ptr), typeof(
On 23/05/17 13:02, Ian Abbott wrote:
On 23/05/17 12:24, Peter Zijlstra wrote:
On Tue, May 23, 2017 at 11:32:02AM +0100, Ian Abbott wrote:
#define container_of(ptr, type, member) (\
_Static_assert(__builtin_types_compatible_p(\
typeof(*ptr), typeof(
On 23/05/17 12:24, Peter Zijlstra wrote:
On Tue, May 23, 2017 at 11:32:02AM +0100, Ian Abbott wrote:
#define container_of(ptr, type, member) ( \
_Static_assert(__builtin_types_compatible_p(\
typeof(*ptr), typeof( ((type
On 23/05/17 12:24, Peter Zijlstra wrote:
On Tue, May 23, 2017 at 11:32:02AM +0100, Ian Abbott wrote:
#define container_of(ptr, type, member) ( \
_Static_assert(__builtin_types_compatible_p(\
typeof(*ptr), typeof( ((type
On Tue, May 23, 2017 at 11:32:02AM +0100, Ian Abbott wrote:
> > #define container_of(ptr, type, member) ( \
> > _Static_assert(__builtin_types_compatible_p(\
> > typeof(*ptr), typeof( ((type *)0)->member )), "WUT"), \
> > ((type
On Tue, May 23, 2017 at 11:32:02AM +0100, Ian Abbott wrote:
> > #define container_of(ptr, type, member) ( \
> > _Static_assert(__builtin_types_compatible_p(\
> > typeof(*ptr), typeof( ((type *)0)->member )), "WUT"), \
> > ((type
On 22/05/17 18:58, Michal Nazarewicz wrote:
On Mon, May 22 2017, Ian Abbott wrote:
If the first parameter of container_of() is a pointer to a
non-const-qualified array type (and the third parameter names a
non-const-qualified array member), the local variable __mptr will be
defined with a
On 22/05/17 18:58, Michal Nazarewicz wrote:
On Mon, May 22 2017, Ian Abbott wrote:
If the first parameter of container_of() is a pointer to a
non-const-qualified array type (and the third parameter names a
non-const-qualified array member), the local variable __mptr will be
defined with a
On Mon, May 22 2017, Ian Abbott wrote:
> If the first parameter of container_of() is a pointer to a
> non-const-qualified array type (and the third parameter names a
> non-const-qualified array member), the local variable __mptr will be
> defined with a const-qualified array type. In ISO C, these
On Mon, May 22 2017, Ian Abbott wrote:
> If the first parameter of container_of() is a pointer to a
> non-const-qualified array type (and the third parameter names a
> non-const-qualified array member), the local variable __mptr will be
> defined with a const-qualified array type. In ISO C, these
If the first parameter of container_of() is a pointer to a
non-const-qualified array type (and the third parameter names a
non-const-qualified array member), the local variable __mptr will be
defined with a const-qualified array type. In ISO C, these types are
incompatible. They work as expected
If the first parameter of container_of() is a pointer to a
non-const-qualified array type (and the third parameter names a
non-const-qualified array member), the local variable __mptr will be
defined with a const-qualified array type. In ISO C, these types are
incompatible. They work as expected
14 matches
Mail list logo