commit | 2e986b81f698e73c95e6456183f27b861f47bb87 | [log] [tgz] |
---|---|---|
author | Marco Elver <elver@google.com> | Mon Aug 10 10:06:25 2020 +0200 |
committer | Paul E. McKenney <paulmck@kernel.org> | Mon Aug 24 15:10:23 2020 -0700 |
tree | 9a839aaf053ad9afb3de552674d66cd9a40bfda5 | |
parent | 178a1877d782c034f466edd80e30a107af5469df [diff] |
kcsan: Optimize debugfs stats counters Remove kcsan_counter_inc/dec() functions, as they perform no other logic, and are no longer needed. This avoids several calls in kcsan_setup_watchpoint() and kcsan_found_watchpoint(), as well as lets the compiler warn us about potential out-of-bounds accesses as the array's size is known at all usage sites at compile-time. Signed-off-by: Marco Elver <elver@google.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>