summaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorEric Dumazet2015-09-29 16:42:45 +0200
committerDavid S. Miller2015-09-30 01:53:08 +0200
commit87e002b21aafccfe71faeec62f3543d30600a518 (patch)
tree9f31188a081e0241d15cb4757f276488a14284b7 /include/net/sock.h
parentinet: constify __inet_inherit_port() sock argument (diff)
downloadkernel-qcow2-linux-87e002b21aafccfe71faeec62f3543d30600a518.tar.gz
kernel-qcow2-linux-87e002b21aafccfe71faeec62f3543d30600a518.tar.xz
kernel-qcow2-linux-87e002b21aafccfe71faeec62f3543d30600a518.zip
net: constify sk_gfp_atomic() sock argument
Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 94dff7f566f5..dfe2eb8e1132 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -759,7 +759,7 @@ static inline int sk_memalloc_socks(void)
#endif
-static inline gfp_t sk_gfp_atomic(struct sock *sk, gfp_t gfp_mask)
+static inline gfp_t sk_gfp_atomic(const struct sock *sk, gfp_t gfp_mask)
{
return GFP_ATOMIC | (sk->sk_allocation & __GFP_MEMALLOC);
}