| commit | fb35672ec7b33e4c9db11892ced97877fb337a7e | [log] [tgz] |
|---|---|---|
| author | Joel Fernandes (Google) <joel@joelfernandes.org> | Mon Mar 06 14:33:58 2023 +0000 |
| committer | Joel Fernandes (Google) <joel@joelfernandes.org> | Tue Mar 07 03:05:31 2023 +0000 |
| tree | 3507b4c8a54f44300adcbd2ac4b0d67eff98c4f6 | |
| parent | fe15c26ee26efa11741a7b632e9f23b01aca4cc6 [diff] |
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/ Signed-off-by: Joel Fernandes (Google) <joel@joelfernandes.org> option-start