Re: [PATCH libinput] util: harmonize container_of() definition with linux kernel one

2017-05-16 Thread Peter Hutterer
On Mon, May 15, 2017 at 01:08:17PM +0200, Gabriel Laskar wrote: > commit 3925936 introduced changes to container_of, this is hopefully the > last part of it. > > In the linux kernel, container_of() takes a type name, and not a > variable. Without this, in some cases it is needed to declare an unus

[PATCH libinput] util: harmonize container_of() definition with linux kernel one

2017-05-15 Thread Gabriel Laskar
commit 3925936 introduced changes to container_of, this is hopefully the last part of it. In the linux kernel, container_of() takes a type name, and not a variable. Without this, in some cases it is needed to declare an unused variable in order to call container_of(). example: return con