Re: [PATCH] kernel.h: handle pointers to arrays better in container_of()

2016-10-17 Thread Michal Nazarewicz
On Mon, Oct 10 2016, Ian Abbott wrote: > If the first parameter of container_of() is a pointer to a > non-const-qualified array type, the local variable __mptr will be > defined with a const-qualified array type. In ISO C, these types are > incompatible. They work as expected in GNU C, but some

Re: [PATCH] kernel.h: handle pointers to arrays better in container_of()

2016-10-17 Thread Michal Nazarewicz
On Mon, Oct 10 2016, Ian Abbott wrote: > If the first parameter of container_of() is a pointer to a > non-const-qualified array type, the local variable __mptr will be > defined with a const-qualified array type. In ISO C, these types are > incompatible. They work as expected in GNU C, but some