diff options
author | Eric Dumazet <edumazet@google.com> | 2013-06-25 04:21:06 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-25 05:44:05 -0400 |
commit | 7ae8639c9d6d5aba7990b4fad3506ff7b4667a45 (patch) | |
tree | e48b9fbaac8312e53bb49a7bd0f4c41020ec3f3e /include/net/tcp.h | |
parent | e4fc408e0e99fd2e009c8b3702d9637f5554fd5c (diff) |
tcp: remove invalid __rcu annotation
struct tcp_fastopen_context has a field named tfm, which is a pointer
to a crypto_cipher structure.
It currently has a __rcu annotation, which is not needed at all.
tcp_fastopen_ctx is the pointer fetched by rcu_dereference(), but once
we have a pointer to current tcp_fastopen_context, we do not use/need
rcu_dereference() to access tfm.
This fixes a lot of sparse errors like the following :
net/ipv4/tcp_fastopen.c:21:31: warning: incorrect type in argument 1 (different address spaces)
net/ipv4/tcp_fastopen.c:21:31: expected struct crypto_cipher *tfm
net/ipv4/tcp_fastopen.c:21:31: got struct crypto_cipher [noderef] <asn:4>*tfm
Signed-off-by: Eric Dumazet <edumazet@google.com>
Cc: Jerry Chu <hkchu@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index 6fa80831dc40..d1980054ec75 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1319,9 +1319,9 @@ void tcp_fastopen_cookie_gen(__be32 addr, struct tcp_fastopen_cookie *foc); | |||
1319 | 1319 | ||
1320 | /* Fastopen key context */ | 1320 | /* Fastopen key context */ |
1321 | struct tcp_fastopen_context { | 1321 | struct tcp_fastopen_context { |
1322 | struct crypto_cipher __rcu *tfm; | 1322 | struct crypto_cipher *tfm; |
1323 | __u8 key[TCP_FASTOPEN_KEY_LENGTH]; | 1323 | __u8 key[TCP_FASTOPEN_KEY_LENGTH]; |
1324 | struct rcu_head rcu; | 1324 | struct rcu_head rcu; |
1325 | }; | 1325 | }; |
1326 | 1326 | ||
1327 | /* write queue abstraction */ | 1327 | /* write queue abstraction */ |