]> git.baikalelectronics.ru Git - kernel.git/commit
af_unix: Convert the unix_sk macro to an inline function for type safety
authorAaron Conole <aconole@bytheb.org>
Sat, 26 Sep 2015 22:50:42 +0000 (18:50 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Sep 2015 20:47:07 +0000 (13:47 -0700)
commit133574dfd667eaf3565d9a5b922ec0745429e1c7
tree41c2ddafb01579379b95bbdb1eea386b8d96586c
parent011f06b005f85024591cede7d1fd9dcb9839c779
af_unix: Convert the unix_sk macro to an inline function for type safety

As suggested by Eric Dumazet this change replaces the
#define with a static inline function to enjoy
complaints by the compiler when misusing the API.

Signed-off-by: Aaron Conole <aconole@bytheb.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/af_unix.h