Re: [PATCH] kernel/range: Const-ify range_contains parameters
From: David Sterba
Date: Thu Oct 10 2024 - 16:39:10 EST
On Thu, Oct 10, 2024 at 10:24:42AM -0500, Ira Weiny wrote:
> range_contains() does not modify the range values. David suggested it
> is safer to keep those parameters as const.[1]
>
> Make range parameters const
>
> Link: https://lore.kernel.org/all/20241008161032.GB1609@xxxxxxxxxxxxx/ [1]
> Suggested-by: David Sterba <dsterba@xxxxxxx>
You can drop the above line.
> Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>
Reviewed-by: David Sterba <dsterba@xxxxxxxx>