mirror of https://github.com/torvalds/linux.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 <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:
parent
2e41e5a91a
commit
0f6f1982cb
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue