tag | 49dfbdff72526510eb8703f7380e160dec79bf22 | |
---|---|---|
tagger | Paul E. McKenney <paulmck@kernel.org> | Fri Sep 13 07:49:52 2024 -0700 |
object | 43d631bf06ec961bbe4c824b931fe03be44c419c |
kcsan: Use min() to fix Coccinelle warning. Courtesy of Thorsten Blum.
commit | 43d631bf06ec961bbe4c824b931fe03be44c419c | [log] [tgz] |
---|---|---|
author | Thorsten Blum <thorsten.blum@toblux.com> | Mon Jun 24 19:57:28 2024 +0200 |
committer | Paul E. McKenney <paulmck@kernel.org> | Thu Aug 01 16:40:44 2024 -0700 |
tree | b214e6659d0b966a9d9ee423f548e04db38e1899 | |
parent | 8400291e289ee6b2bf9779ff1c83a291501f017b [diff] |
kcsan: Use min() to fix Coccinelle warning Fixes the following Coccinelle/coccicheck warning reported by minmax.cocci: WARNING opportunity for min() Use const size_t instead of int for the result of min(). Compile-tested with CONFIG_KCSAN=y. Reviewed-by: Marco Elver <elver@google.com> Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>