summaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2015-09-29 07:42:45 -0700
committerDavid S. Miller <davem@davemloft.net>2015-09-29 16:53:08 -0700
commit87e002b21aafccfe71faeec62f3543d30600a518 (patch)
tree9f31188a081e0241d15cb4757f276488a14284b7 /include/net/sock.h
parent1ce31c9e08997ea0fa62be0a7437f868be173f13 (diff)
downloadtalos-obmc-linux-87e002b21aafccfe71faeec62f3543d30600a518.tar.gz
talos-obmc-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);
}
OpenPOWER on IntegriCloud