Re: [PATCH] kernel/range: Const-ify range_contains parameters

From: Ira Weiny
Date: Fri Oct 11 2024 - 10:30:00 EST


David Sterba wrote:
> 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.

Done.


>
> > Signed-off-by: Ira Weiny <ira.weiny@xxxxxxxxx>
>
> Reviewed-by: David Sterba <dsterba@xxxxxxxx>

Queued in the cxl-next tree.

Thanks!
Ira