mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 14:04:27 -04:00
coccinelle: ifnulldev_put: update outdated helper names
dev_put_track() and dev_hold_track() were renamed to netdev_put() and
netdev_hold() by commit d62607c3fe ("net: rename reference+tracking
helpers").
So update the names.
Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
This commit is contained in:
committed by
Julia Lawall
parent
5264281879
commit
f83b8a5869
@@ -23,13 +23,13 @@ expression E;
|
||||
|
|
||||
dev_put(E);
|
||||
|
|
||||
dev_put_track(E, ...);
|
||||
netdev_put(E, ...);
|
||||
|
|
||||
__dev_hold(E);
|
||||
|
|
||||
dev_hold(E);
|
||||
|
|
||||
dev_hold_track(E, ...);
|
||||
netdev_hold(E, ...);
|
||||
)
|
||||
|
||||
@r depends on context || report || org @
|
||||
@@ -38,8 +38,8 @@ position p;
|
||||
@@
|
||||
|
||||
* if (E != NULL)
|
||||
* \(__dev_put@p\|dev_put@p\|dev_put_track@p\|__dev_hold@p\|dev_hold@p\|
|
||||
* dev_hold_track@p\)(E, ...);
|
||||
* \(__dev_put@p\|dev_put@p\|netdev_put@p\|__dev_hold@p\|dev_hold@p\|
|
||||
* netdev_hold@p\)(E, ...);
|
||||
|
||||
@script:python depends on org@
|
||||
p << r.p;
|
||||
|
||||
Reference in New Issue
Block a user