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 <ingridg@codeaurora.org>
Этот коммит содержится в:
Ingrid Gallardo
2021-08-31 21:38:59 -07:00
коммит произвёл Gerrit - the friendly Code Review server
родитель cb20292c2d
Коммит de3e31a08a

Просмотреть файл

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