From: Eric Dumazet Date: Tue, 27 Apr 2010 02:42:51 +0000 (+0000) Subject: rps: inet_rps_save_rxhash() argument is not const X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=18f9f1365dad1237072d360bc487d8c7a1cae532;p=openwrt%2Fstaging%2Fblogic.git rps: inet_rps_save_rxhash() argument is not const const qualifier on sock argument is misleading, since we can modify rxhash. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h index b487bc1b99ab..c1d42957b86b 100644 --- a/include/net/inet_sock.h +++ b/include/net/inet_sock.h @@ -248,7 +248,7 @@ static inline void inet_rps_reset_flow(const struct sock *sk) #endif } -static inline void inet_rps_save_rxhash(const struct sock *sk, u32 rxhash) +static inline void inet_rps_save_rxhash(struct sock *sk, u32 rxhash) { #ifdef CONFIG_RPS if (unlikely(inet_sk(sk)->rxhash != rxhash)) {