aboutsummaryrefslogtreecommitdiff
path: root/lib/test_list_sort.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test_list_sort.c')
-rw-r--r--lib/test_list_sort.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/test_list_sort.c b/lib/test_list_sort.c
index 1f017d3b610e..00daaf23316f 100644
--- a/lib/test_list_sort.c
+++ b/lib/test_list_sort.c
@@ -56,7 +56,8 @@ static int __init check(struct debug_el *ela, struct debug_el *elb)
return 0;
}
-static int __init cmp(void *priv, struct list_head *a, struct list_head *b)
+static int __init cmp(void *priv, const struct list_head *a,
+ const struct list_head *b)
{
struct debug_el *ela, *elb;