diff options
author | David S. Miller <davem@davemloft.net> | 2011-12-23 17:33:03 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-23 17:33:03 -0500 |
commit | 035c4c16bea2814890c64c657d177e91cec1f473 (patch) | |
tree | 102e3e98051509697f677190d25946f87139aec7 /net/netlink | |
parent | abb434cb0539fb355c1c921f8fd761efbbac3462 (diff) |
netlink: Undo const marker in netlink_is_kernel().
We can't do this without propagating the const to nlk_sk()
too, otherwise:
net/netlink/af_netlink.c: In function ‘netlink_is_kernel’:
net/netlink/af_netlink.c:103:2: warning: passing argument 1 of ‘nlk_sk’ discards ‘const’ qualifier from pointer target type [enabled by default]
net/netlink/af_netlink.c:96:36: note: expected ‘struct sock *’ but argument is of type ‘const struct sock *’
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 86a258d9af84..629b06182f3f 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -98,7 +98,7 @@ static inline struct netlink_sock *nlk_sk(struct sock *sk) | |||
98 | return container_of(sk, struct netlink_sock, sk); | 98 | return container_of(sk, struct netlink_sock, sk); |
99 | } | 99 | } |
100 | 100 | ||
101 | static inline int netlink_is_kernel(const struct sock *sk) | 101 | static inline int netlink_is_kernel(struct sock *sk) |
102 | { | 102 | { |
103 | return nlk_sk(sk)->flags & NETLINK_KERNEL_SOCKET; | 103 | return nlk_sk(sk)->flags & NETLINK_KERNEL_SOCKET; |
104 | } | 104 | } |