提交 f33c8b94 编写于 作者: J Julian Anastasov 提交者: Simon Horman

ipvs: fix sparse warnings in lblc and lblcr

kbuild test robot reports for sparse warnings in
commits c2a4ffb7 ("ipvs: convert lblc scheduler to rcu")
and c5549571 ("ipvs: convert lblcr scheduler to rcu").

Fix it by removing extra __rcu annotation.
Signed-off-by: NJulian Anastasov <ja@ssi.bg>
Signed-off-by: NSimon Horman <horms@verge.net.au>
上级 371990ee
...@@ -104,7 +104,7 @@ struct ip_vs_lblc_entry { ...@@ -104,7 +104,7 @@ struct ip_vs_lblc_entry {
*/ */
struct ip_vs_lblc_table { struct ip_vs_lblc_table {
struct rcu_head rcu_head; struct rcu_head rcu_head;
struct hlist_head __rcu bucket[IP_VS_LBLC_TAB_SIZE]; /* hash bucket */ struct hlist_head bucket[IP_VS_LBLC_TAB_SIZE]; /* hash bucket */
struct timer_list periodic_timer; /* collect stale entries */ struct timer_list periodic_timer; /* collect stale entries */
atomic_t entries; /* number of entries */ atomic_t entries; /* number of entries */
int max_size; /* maximum size of entries */ int max_size; /* maximum size of entries */
......
...@@ -284,7 +284,7 @@ struct ip_vs_lblcr_entry { ...@@ -284,7 +284,7 @@ struct ip_vs_lblcr_entry {
*/ */
struct ip_vs_lblcr_table { struct ip_vs_lblcr_table {
struct rcu_head rcu_head; struct rcu_head rcu_head;
struct hlist_head __rcu bucket[IP_VS_LBLCR_TAB_SIZE]; /* hash bucket */ struct hlist_head bucket[IP_VS_LBLCR_TAB_SIZE]; /* hash bucket */
atomic_t entries; /* number of entries */ atomic_t entries; /* number of entries */
int max_size; /* maximum size of entries */ int max_size; /* maximum size of entries */
struct timer_list periodic_timer; /* collect stale entries */ struct timer_list periodic_timer; /* collect stale entries */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册