From: Dave Jiang Date: Fri, 10 Oct 2025 20:57:54 +0000 (-0700) Subject: cxl: Set range param for region_res_match_cxl_range() as const X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=0f6f1982cb28abf1b8a3a8ba906e2c6ade6a70e8;p=users%2Fhch%2Fmisc.git cxl: Set range param for region_res_match_cxl_range() as const The function takes two parameters and compares them. The second parameter should be const since no modification should be done to it. Reviewed-by: Gregory Price Reviewed-by: Alison Schofield Signed-off-by: Dave Jiang --- diff --git a/drivers/cxl/core/region.c b/drivers/cxl/core/region.c index e14c1d305b22..858d4678628d 100644 --- a/drivers/cxl/core/region.c +++ b/drivers/cxl/core/region.c @@ -839,7 +839,7 @@ static int match_free_decoder(struct device *dev, const void *data) } static bool region_res_match_cxl_range(const struct cxl_region_params *p, - struct range *range) + const struct range *range) { if (!p->res) return false;