author: Sami Tolvanen <samitolvanen@google.com> 2021-04-08 11:28:34 -0700
committer: Kees Cook <keescook@chromium.org> 2021-04-08 16:04:22 -0700
commit: 4f0f586bf0c898233d8f316f471a21db2abd522d
parent: 9f5b4009980f369acb80b72235b2d66c3fd6eca6
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 1 deletion
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;