};
struct list {
- size_t list_size;
size_t list_offset;
struct list_node list_head;
};
typedef struct list_head list_node_t;
typedef struct list {
- size_t list_size;
size_t list_offset;
list_node_t list_head;
} list_t;
static inline void
list_create(list_t *list, size_t size, size_t offset)
{
- list->list_size = size;
+ (void) size;
+
list->list_offset = offset;
INIT_LIST_HEAD(&list->list_head);
}
};
struct list {
- size_t list_size;
size_t list_offset;
struct list_node list_head;
};
ASSERT(size > 0);
ASSERT(size >= offset + sizeof (list_node_t));
- list->list_size = size;
+ (void) size;
+
list->list_offset = offset;
list->list_head.next = list->list_head.prev = &list->list_head;
}
list_node_t *dstnode = &dst->list_head;
list_node_t *srcnode = &src->list_head;
- ASSERT(dst->list_size == src->list_size);
ASSERT(dst->list_offset == src->list_offset);
if (list_empty(src))
ASSERT3P(list, !=, NULL);
ASSERT3U(size, >=, offset + sizeof (list_node_t));
- list->list_size = size;
+ (void) size;
+
list->list_offset = offset;
list->list_head.list_next = list->list_head.list_prev =
&list->list_head;
list_node_t *dstnode = &dst->list_head;
list_node_t *srcnode = &src->list_head;
- ASSERT3U(dst->list_size, ==, src->list_size);
ASSERT3U(dst->list_offset, ==, src->list_offset);
if (list_empty(src))