Explorar o código

disp: msm: sde: adjust list_sort api to adapt kernel 5.15 params

Latest Kernel modified list_sort to receive 'const' parameters in
its function pointer, this change modifies the functions used
by list_sort to add 'const' parameters.

Change-Id: I83212e1e7a749132c90011d0a8933c5eb2990bd2
Signed-off-by: Ingrid Gallardo <[email protected]>
Ingrid Gallardo %!s(int64=3) %!d(string=hai) anos
pai
achega
de3e31a08a
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      msm/sde_dbg.c

+ 4 - 4
msm/sde_dbg.c

@@ -667,8 +667,8 @@ void sde_mini_dump_add_va_region(const char *name, u32 size, void *virt_addr)
 }
 #endif
 
-static int _sde_dump_reg_range_cmp(void *priv, struct list_head *a,
-		struct list_head *b)
+static int _sde_dump_reg_range_cmp(void *priv, const struct list_head *a,
+		const struct list_head *b)
 {
 	struct sde_dbg_reg_range *ar, *br;
 
@@ -681,8 +681,8 @@ static int _sde_dump_reg_range_cmp(void *priv, struct list_head *a,
 	return ar->offset.start - br->offset.start;
 }
 
-static int _sde_dump_blk_phys_addr_cmp(void *priv, struct list_head *a,
-		struct list_head *b)
+static int _sde_dump_blk_phys_addr_cmp(void *priv, const struct list_head *a,
+		const struct list_head *b)
 {
 	struct sde_dbg_reg_base *ar, *br;