Skip to content

Commit

Permalink
Init list heads correctly in tests 09 07/08/14/15
Browse files Browse the repository at this point in the history
Co-authored-by: Simmo Saan <[email protected]>
  • Loading branch information
karoliineh and sim642 committed Sep 12, 2023
1 parent 49f771e commit 85aec69
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion tests/regression/09-regions/07-kernel_list_rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
3 changes: 2 additions & 1 deletion tests/regression/09-regions/08-kernel_list_nr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/09-regions/14-kernel_foreach_rc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion tests/regression/09-regions/15-kernel_foreach_nr.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 85aec69

Please sign in to comment.