disp: msm: sde: fix constness of list_sort compare function

Kernel upgrade has updated list_sort's compare callback's
function signature to take const lists, preventing modification
when performing a comparison.

Change-Id: I71dbe33b9d213357ad9706ffc270053ea569006d
Signed-off-by: Steve Cohen <quic_cohens@quicinc.com>
This commit is contained in:
Steve Cohen
2021-10-15 23:51:14 -04:00
parent 15342a23fe
commit f47009b55f

View File

@@ -48,11 +48,11 @@ struct gh_acl_desc *sde_vm_populate_acl(enum gh_vm_names vm_name)
return acl_desc;
}
int __mem_sort_cmp(void *priv, struct list_head *a, struct list_head *b)
int __mem_sort_cmp(void *priv, const struct list_head *a, const struct list_head *b)
{
struct msm_io_mem_entry *left =
const struct msm_io_mem_entry *left =
container_of(a, struct msm_io_mem_entry, list);
struct msm_io_mem_entry *right =
const struct msm_io_mem_entry *right =
container_of(b, struct msm_io_mem_entry, list);
return (left->base - right->base);