aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
759 759
760#endif 760#endif
761 761
762static inline gfp_t sk_gfp_atomic(struct sock *sk, gfp_t gfp_mask) 762static inline gfp_t sk_gfp_atomic(const struct sock *sk, gfp_t gfp_mask)
763{ 763{
764 return GFP_ATOMIC | (sk->sk_allocation & __GFP_MEMALLOC); 764 return GFP_ATOMIC | (sk->sk_allocation & __GFP_MEMALLOC);
765} 765}