diff options
author | Caleb Sander Mateos <csander@purestorage.com> | 2024-10-31 01:23:25 +0100 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-11-03 21:35:57 +0100 |
commit | a865276872ec4f129f8a582634be82dcc275dc2a (patch) | |
tree | f87906a6c05702dd18bb45fa0f4737f45bb5ffd2 /lib | |
parent | net/tcp: Add missing lockdep annotations for TCP-AO hlist traversals (diff) | |
download | linux-a865276872ec4f129f8a582634be82dcc275dc2a.tar.xz linux-a865276872ec4f129f8a582634be82dcc275dc2a.zip |
dim: make dim_calc_stats() inputs const pointers
Make the start and end arguments to dim_calc_stats() const pointers
to clarify that the function does not modify their values.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Arthur Kiyanovski <akiyano@amazon.com>
Link: https://patch.msgid.link/20241031002326.3426181-1-csander@purestorage.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/dim/dim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/dim/dim.c b/lib/dim/dim.c index 83b65ac74d73..97c3d084ebf0 100644 --- a/lib/dim/dim.c +++ b/lib/dim/dim.c @@ -54,7 +54,8 @@ void dim_park_tired(struct dim *dim) } EXPORT_SYMBOL(dim_park_tired); -bool dim_calc_stats(struct dim_sample *start, struct dim_sample *end, +bool dim_calc_stats(const struct dim_sample *start, + const struct dim_sample *end, struct dim_stats *curr_stats) { /* u32 holds up to 71 minutes, should be enough */ |