]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[VLAN]: sparse warning fix
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 22 Jan 2008 01:27:44 +0000 (17:27 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:10:17 +0000 (15:10 -0800)
Minor sparse warning fix.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/8021q/vlanproc.c

index 2a4e1aabb23b7d56e7b9f7690091e4a379d06746..a0ec4792559713a0afe6fb1051be7d0b3cec31f1 100644 (file)
@@ -220,6 +220,7 @@ static inline int is_vlan_dev(struct net_device *dev)
 
 /* start read of /proc/net/vlan/config */
 static void *vlan_seq_start(struct seq_file *seq, loff_t *pos)
+       __acquires(dev_base_lock)
 {
        struct net_device *dev;
        loff_t i = 1;
@@ -261,6 +262,7 @@ static void *vlan_seq_next(struct seq_file *seq, void *v, loff_t *pos)
 }
 
 static void vlan_seq_stop(struct seq_file *seq, void *v)
+       __releases(dev_base_lock)
 {
        read_unlock(&dev_base_lock);
 }