History

coccinelle: ifnulldev_put: update outdated helper names

dev_put_track() and dev_hold_track() were renamed to netdev_put() and netdev_hold() by commit d62607c3fe45 ("net: rename reference+tracking helpers"). So update the names.

Sang-Heon Jeon committed 2 months ago

Commit f83b8a51 parent 52642811 file · +4 −4Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/coccinelle/free/ifnulldev_put.cocci+4−4
@@ -23,13 +23,13 @@ expression E; · 22 unmodified lines
2323 |
2424 dev_put(E);
2525 |
26− dev_put_track(E, ...);
26+ netdev_put(E, ...);
2727 |
2828 __dev_hold(E);
2929 |
3030 dev_hold(E);
3131 |
32− dev_hold_track(E, ...);
32+ netdev_hold(E, ...);
3333 )
3434
3535 @r depends on context || report || org @
@@ -38,8 +38,8 @@ position p; · 2 unmodified lines
3838 @@
3939
4040 * if (E != NULL)
41−* \(__dev_put@p\|dev_put@p\|dev_put_track@p\|__dev_hold@p\|dev_hold@p\|
42−* dev_hold_track@p\)(E, ...);
41+* \(__dev_put@p\|dev_put@p\|netdev_put@p\|__dev_hold@p\|dev_hold@p\|
42+* netdev_hold@p\)(E, ...);
4343
4444 @script:python depends on org@
4545 p << r.p;