From 17672aa49d3ebefb217d6f2c67f698b3e7e1f86c Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 29 Dec 2020 16:55:32 -0800 Subject: svm: fifo segment sptr for fifo hdr free list With this there are no more pointers in data structures allocated on fifo segments. Type: improvement Signed-off-by: Florin Coras Change-Id: Ibe584b7b6809fa360a105974655a91674db69ab6 --- src/plugins/unittest/svm_fifo_test.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/unittest/svm_fifo_test.c') diff --git a/src/plugins/unittest/svm_fifo_test.c b/src/plugins/unittest/svm_fifo_test.c index b798cc8baa9..4351bced921 100644 --- a/src/plugins/unittest/svm_fifo_test.c +++ b/src/plugins/unittest/svm_fifo_test.c @@ -2410,13 +2410,13 @@ sfifo_test_fifo_segment_slave (int verbose) svm_fifo_dequeue (f, vec_len (retrieved_data), retrieved_data); if (memcmp (retrieved_data, test_data, vec_len (retrieved_data))) { - result = (u32 *) f->shr->head_chunk->data; + result = (u32 *) f_head_cptr (f)->data; *result = 1; _exit (0); } } - result = (u32 *) f->shr->head_chunk->data; + result = (u32 *) f_head_cptr (f)->data; *result = 0; vec_free (test_data); @@ -2470,7 +2470,7 @@ sfifo_test_fifo_segment_master_slave (int verbose) usleep (1e3); - result = (u32 *) f->shr->head_chunk->data; + result = (u32 *) f_head_cptr (f)->data; SFIFO_TEST (*result == 0, "slave reported no error"); vec_free (a->new_segment_indices); -- cgit 1.2.3-korg