From: Eric Dumazet Date: Tue, 29 Sep 2015 14:42:45 +0000 (-0700) Subject: net: constify sk_gfp_atomic() sock argument X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87e002b21aafccfe71faeec62f3543d30600a518;p=linux-beck.git net: constify sk_gfp_atomic() sock argument Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- 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); }