From: Eric Dumazet Date: Tue, 29 Sep 2015 14:42:45 +0000 (-0700) Subject: net: constify sk_gfp_atomic() sock argument X-Git-Tag: MMI-PSA29.97-13-9~9125^2~249^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=87e002b21aafccfe71faeec62f3543d30600a518;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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); }