/* Replace an old entry. */
static inline
-void cds_list_replace(struct cds_list_head *old, struct cds_list_head *_new)
+void cds_list_replace(const struct cds_list_head *old, struct cds_list_head *_new)
{
_new->next = old->next;
_new->prev = old->prev;
pos = (p), p = cds_list_entry((pos)->member.next, __typeof__(*(pos)), member))
static inline
-int cds_list_empty(struct cds_list_head *head)
+int cds_list_empty(const struct cds_list_head *head)
{
return head == head->next;
}