]> 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)
commit161dc2c7f92534845f3c86cfe7237ff5c66307ca
tree41c2ddafb01579379b95bbdb1eea386b8d96586c
parentd26420af7c093070d953933a3420e4118b300e68
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