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)
commit4613012db1d911f80897f9446a49de817b2c4c47
tree41c2ddafb01579379b95bbdb1eea386b8d96586c
parent2103d6b818fcdae15ffa04cf385f770e6c3892c3
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