[PATCH 2/8] netfilter: get rid of sparse warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tell sparse about lock assumption here.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx>

--- a/net/netfilter/nf_log.c	2008-01-23 10:02:42.000000000 -0800
+++ b/net/netfilter/nf_log.c	2008-01-23 10:03:00.000000000 -0800
@@ -103,6 +103,7 @@ EXPORT_SYMBOL(nf_log_packet);
 
 #ifdef CONFIG_PROC_FS
 static void *seq_start(struct seq_file *seq, loff_t *pos)
+	__acquires(RCU)
 {
 	rcu_read_lock();
 
@@ -123,6 +124,7 @@ static void *seq_next(struct seq_file *s
 }
 
 static void seq_stop(struct seq_file *s, void *v)
+	__releases(RCU)
 {
 	rcu_read_unlock();
 }

-- 
Stephen Hemminger <stephen.hemminger@xxxxxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux