diff --git a/tests/regression/09-regions/07-kernel_list_rc.c b/tests/regression/09-regions/07-kernel_list_rc.c index 783af7f026..89b9a94269 100644 --- a/tests/regression/09-regions/07-kernel_list_rc.c +++ b/tests/regression/09-regions/07-kernel_list_rc.c @@ -7,7 +7,8 @@ struct s { struct list_head list; }; -struct list_head A, B; +LIST_HEAD(A); +LIST_HEAD(B); static DEFINE_MUTEX(A_mutex); static DEFINE_MUTEX(B_mutex); diff --git a/tests/regression/09-regions/08-kernel_list_nr.c b/tests/regression/09-regions/08-kernel_list_nr.c index b21dc87f53..fde094bcf6 100644 --- a/tests/regression/09-regions/08-kernel_list_nr.c +++ b/tests/regression/09-regions/08-kernel_list_nr.c @@ -8,7 +8,8 @@ struct s { struct list_head list; }; -struct list_head A, B; +LIST_HEAD(A); +LIST_HEAD(B); static DEFINE_MUTEX(A_mutex); static DEFINE_MUTEX(B_mutex); diff --git a/tests/regression/09-regions/14-kernel_foreach_rc.c b/tests/regression/09-regions/14-kernel_foreach_rc.c index a32588b64d..315d670a6e 100644 --- a/tests/regression/09-regions/14-kernel_foreach_rc.c +++ b/tests/regression/09-regions/14-kernel_foreach_rc.c @@ -8,7 +8,7 @@ struct s { struct list_head list; }; -struct list_head slot[10]; +struct list_head slot[10]; // TODO: correctly initialize list heads struct mutex slots_mutex[10]; struct s *new(int x) { diff --git a/tests/regression/09-regions/15-kernel_foreach_nr.c b/tests/regression/09-regions/15-kernel_foreach_nr.c index cc9d36d0ab..d81e83e928 100644 --- a/tests/regression/09-regions/15-kernel_foreach_nr.c +++ b/tests/regression/09-regions/15-kernel_foreach_nr.c @@ -9,7 +9,7 @@ struct s { struct list_head list; }; -struct list_head slot[10]; +struct list_head slot[10]; // TODO: correctly initialize list heads struct mutex slots_mutex[10]; struct s *new(int x) {