OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c37e5d
)
rps: inet_rps_save_rxhash() argument is not const
author
Eric Dumazet
<eric.dumazet@gmail.com>
Tue, 27 Apr 2010 02:42:51 +0000
(
02:42
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 27 Apr 2010 19:53:25 +0000
(12:53 -0700)
const qualifier on sock argument is misleading, since we can modify rxhash.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_sock.h
patch
|
blob
|
history
diff --git
a/include/net/inet_sock.h
b/include/net/inet_sock.h
index
b487bc1
..
c1d4295
100644
(file)
--- 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)) {