projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa767bf
)
[PKT_SCHED] net: add sparse annotation to ptype_seq_start/stop
author
Stephen Hemminger
<shemminger@vyatta.com>
Mon, 21 Jan 2008 10:27:29 +0000
(
02:27
-0800)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Jan 2008 23:08:42 +0000
(15:08 -0800)
Get rid of some more sparse warnings.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c
patch
|
blob
|
history
diff --git
a/net/core/dev.c
b/net/core/dev.c
index
eee7742
..
c9c593e
100644
(file)
--- a/
net/core/dev.c
+++ b/
net/core/dev.c
@@
-2543,6
+2543,7
@@
static void *ptype_get_idx(loff_t pos)
}
static void *ptype_seq_start(struct seq_file *seq, loff_t *pos)
+ __acquires(RCU)
{
rcu_read_lock();
return *pos ? ptype_get_idx(*pos - 1) : SEQ_START_TOKEN;
@@
-2578,6
+2579,7
@@
found:
}
static void ptype_seq_stop(struct seq_file *seq, void *v)
+ __releases(RCU)
{
rcu_read_unlock();
}