From: Stephen Hemminger Date: Tue, 22 Jan 2008 01:27:44 +0000 (-0800) Subject: [VLAN]: sparse warning fix X-Git-Tag: v2.6.25-rc1~1162^2~98 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1402c8519acba215f5a6101b9e5ada07ab371273;p=platform%2Fkernel%2Flinux-3.10.git [VLAN]: sparse warning fix Minor sparse warning fix. Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/net/8021q/vlanproc.c b/net/8021q/vlanproc.c index 2a4e1aa..a0ec479 100644 --- a/net/8021q/vlanproc.c +++ b/net/8021q/vlanproc.c @@ -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); }