]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dim: make dim_calc_stats() inputs const pointers
authorCaleb Sander Mateos <csander@purestorage.com>
Thu, 31 Oct 2024 00:23:25 +0000 (18:23 -0600)
committerJakub Kicinski <kuba@kernel.org>
Sun, 3 Nov 2024 20:35:57 +0000 (12:35 -0800)
commita865276872ec4f129f8a582634be82dcc275dc2a
treef87906a6c05702dd18bb45fa0f4737f45bb5ffd2
parent6b2d11e2d8fc130df4708be0b6b53fd3e6b54cf6
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>
include/linux/dim.h
lib/dim/dim.c