Re: [PATCH 1/3] net: add a CMSG_USER_DATA macro

2020-05-12 Thread Christoph Hellwig
On Tue, May 12, 2020 at 11:28:08AM +0300, Sergei Shtylyov wrote: >Perhaps it's time to add missing spaces consistently, not just one that > you added? That is all fixed up in the next patch.

Re: [PATCH 1/3] net: add a CMSG_USER_DATA macro

2020-05-12 Thread Sergei Shtylyov
Hello! On 11.05.2020 14:59, Christoph Hellwig wrote: Add a variant of CMSG_DATA that operates on user pointer to avoid sparse warnings about casting to/from user pointers. Also fix up CMSG_DATA to rely on the gcc extension that allows void pointer arithmetics to cut down on the amount of casts

[PATCH 1/3] net: add a CMSG_USER_DATA macro

2020-05-11 Thread Christoph Hellwig
Add a variant of CMSG_DATA that operates on user pointer to avoid sparse warnings about casting to/from user pointers. Also fix up CMSG_DATA to rely on the gcc extension that allows void pointer arithmetics to cut down on the amount of casts. Signed-off-by: Christoph Hellwig --- include/linux/s