소스 검색

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 <[email protected]>
Steve Cohen 3 년 전
부모
커밋
f47009b55f
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      msm/sde/sde_vm_common.c

+ 3 - 3
msm/sde/sde_vm_common.c

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