Re: [PATCH for v3.13 2/7] IB/uverbs: remove implicit cast in INIT_UDATA()

2013-11-27 Thread Yann Droneaud
Hi Matan, Le mercredi 27 novembre 2013 à 10:21 +0200, Matan Barak a écrit : > On 27/11/2013 12:02 AM, Yann Droneaud wrote: ... > > INIT_UDATA(&udata, buf + sizeof cmd, > > - (unsigned long) cmd.response + sizeof resp, > > + (void __user *)(unsigned long)cmd.response +

Re: [PATCH for v3.13 2/7] IB/uverbs: remove implicit cast in INIT_UDATA()

2013-11-27 Thread Matan Barak
On 27/11/2013 12:02 AM, Yann Droneaud wrote: Currently, INIT_UDATA() does an implicit cast to a pointer, so that 'response' address, eg. output buffer, can be used as is to initialize a struct ib_udata: do {\ (udata)->

[PATCH for v3.13 2/7] IB/uverbs: remove implicit cast in INIT_UDATA()

2013-11-26 Thread Yann Droneaud
Currently, INIT_UDATA() does an implicit cast to a pointer, so that 'response' address, eg. output buffer, can be used as is to initialize a struct ib_udata: do {\ (udata)->inbuf = (void __user *) (ibuf); \