]> err.no Git - linux-2.6/blobdiff - net/netfilter/nf_log.c
[NETFILTER]: nf_conntrack_h3223: sparse fixes
[linux-2.6] / net / netfilter / nf_log.c
index ed9116dc78b5ea7a9d3e067cbae287eef84e9598..cec9976aecbf5c5e8592c8c841d57532f8748655 100644 (file)
@@ -91,7 +91,6 @@ void nf_log_packet(int pf,
                va_start(args, fmt);
                vsnprintf(prefix, sizeof(prefix), fmt, args);
                va_end(args);
-               /* We must read logging before nf_logfn[pf] */
                logger->logfn(pf, hooknum, skb, in, out, loginfo, prefix);
        } else if (net_ratelimit()) {
                printk(KERN_WARNING "nf_log_packet: can\'t log since "
@@ -104,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();
 
@@ -124,6 +124,7 @@ static void *seq_next(struct seq_file *s, void *v, loff_t *pos)
 }
 
 static void seq_stop(struct seq_file *s, void *v)
+       __releases(RCU)
 {
        rcu_read_unlock();
 }