Commit 87e002b2 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller

net: constify sk_gfp_atomic() sock argument

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ce31c9e
...@@ -759,7 +759,7 @@ static inline int sk_memalloc_socks(void) ...@@ -759,7 +759,7 @@ static inline int sk_memalloc_socks(void)
#endif #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); return GFP_ATOMIC | (sk->sk_allocation & __GFP_MEMALLOC);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment