aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorZhen Lei <[email protected]>2024-08-22 11:21:28 +0800
committerFrederic Weisbecker <[email protected]>2024-10-23 18:01:36 +0200
commit79a20a857009f12ab28c716d3ba218cf3ceee6f7 (patch)
tree0c62eebff2641419cfd95b3cac96789ae787db58 /tools/perf/scripts/python/syscall-counts.py
parentf7345ccc62a4b880cf76458db5f320725f28e400 (diff)
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 <[email protected]> Signed-off-by: Neeraj Upadhyay <[email protected]> Signed-off-by: Frederic Weisbecker <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions