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 <gourry@gourry.net>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
This commit is contained in:
Dave Jiang 2025-10-10 13:57:54 -07:00
parent 2e41e5a91a
commit 0f6f1982cb
1 changed files with 1 additions and 1 deletions

View File

@ -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;