checkpatch: Complain about unexpected uses of RCU Tasks Trace
authorPaul E. McKenney <paulmck@kernel.org>
Thu, 6 Jul 2023 18:48:07 +0000 (11:48 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Mon, 24 Jul 2023 21:52:16 +0000 (14:52 -0700)
commit84dd7f19e72656fac5faf67f1b1809e57e9788cc
tree903cb4f72027c3f8a0b502cc7bb94efbc8c22605
parentdb13710a0365ba66f8f232eb3bdfaa1a10d820f7
checkpatch: Complain about unexpected uses of RCU Tasks Trace

RCU Tasks Trace is quite specialized, having been created specifically
for sleepable BPF programs.  Because it allows general blocking within
readers, any new use of RCU Tasks Trace must take current use cases into
account.  Therefore, update checkpatch.pl to complain about use of any of
the RCU Tasks Trace API members outside of BPF and outside of RCU itself.

[ paulmck: Apply Joe Perches feedback. ]

Cc: Andy Whitcroft <apw@canonical.com> (maintainer:CHECKPATCH)
Cc: Joe Perches <joe@perches.com> (maintainer:CHECKPATCH)
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com> (reviewer:CHECKPATCH)
Cc: Lukas Bulwahn <lukas.bulwahn@gmail.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: <bpf@vger.kernel.org>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
scripts/checkpatch.pl