diff options
author | 2023-03-06 14:33:58 +0000 | |
---|---|---|
committer | 2023-04-05 13:48:04 +0000 | |
commit | 1eacac3255495be7502d406e2ba5444fb5c3607c (patch) | |
tree | 7e529328506e7e16904ff5f29562e385b401d73c /scripts/generate_rust_analyzer.py | |
parent | mac802154: Rename kfree_rcu() to kvfree_rcu_mightsleep() (diff) | |
download | linux-rng-1eacac3255495be7502d406e2ba5444fb5c3607c.tar.xz linux-rng-1eacac3255495be7502d406e2ba5444fb5c3607c.zip |
checkpatch: Error out if deprecated RCU API used
Single-argument kvfree_rcu() usage is being deprecated [1] [2]. However,
till all users are converted, we would like to introduce checkpatch
errors for new patches submitted.
This patch adds support for the same. Tested with a trial patch.
For now, we are only considering usages that don't have compound
nesting, for example ignore: kvfree_rcu( (rcu_head_obj), rcu_head_name).
This is sufficient as such usages are unlikely.
Once all users are converted and we remove the old API, we can also revert this
checkpatch patch then.
[1] https://lore.kernel.org/rcu/CAEXW_YRhHaVuq+5f+VgCZM=SF+9xO+QXaxe0yE7oA9iCXK-XPg@mail.gmail.com/
[2] https://lore.kernel.org/rcu/CAEXW_YSY=q2_uaE2qo4XSGjzs4+C102YMVJ7kWwuT5LGmJGGew@mail.gmail.com/
Acked-by: Paul E. McKenney <paulmck@kernel.org>
Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions