Skip to content

Commit 0f6f198

Browse files
committed
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>
1 parent 2e41e5a commit 0f6f198

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/cxl/core/region.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ static int match_free_decoder(struct device *dev, const void *data)
839839
}
840840

841841
static bool region_res_match_cxl_range(const struct cxl_region_params *p,
842-
struct range *range)
842+
const struct range *range)
843843
{
844844
if (!p->res)
845845
return false;

0 commit comments

Comments
 (0)