summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_files.py
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2024-08-22 06:21:28 +0300
committerFrederic Weisbecker <frederic@kernel.org>2024-10-23 19:01:36 +0300
commit79a20a857009f12ab28c716d3ba218cf3ceee6f7 (patch)
tree0c62eebff2641419cfd95b3cac96789ae787db58 /scripts/lib/kdoc/kdoc_files.py
parentf7345ccc62a4b880cf76458db5f320725f28e400 (diff)
downloadlinux-79a20a857009f12ab28c716d3ba218cf3ceee6f7.tar.xz
srcu: Replace WARN_ON_ONCE() with BUILD_BUG_ON() if possible
The value of ARRAY_SIZE() can be determined at compile time, so if both sides of the equation are ARRAY_SIZE(), using BUILD_BUG_ON() can help us catch the problem earlier. While there are cases where unequal array sizes will work, there is no point in allowing them, so it makes more sense to force them to be equal using BUILD_BUG_ON(). Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Neeraj Upadhyay <neeraj.upadhyay@kernel.org> Signed-off-by: Frederic Weisbecker <frederic@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions