1
0
Fork 0
forked from Miroirs/x49gp

explicit cast

This commit is contained in:
Gwenhael Le Moine 2024-10-29 15:26:44 +01:00
parent 58287d660a
commit 0041e7546c
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -97,8 +97,8 @@ static inline void __list_del( struct list_head* prev, struct list_head* next )
static inline void list_del( struct list_head* entry )
{
__list_del( entry->prev, entry->next );
entry->next = LIST_POISON1;
entry->prev = LIST_POISON2;
entry->next = (struct list_head*)LIST_POISON1;
entry->prev = (struct list_head*)LIST_POISON2;
}
/**
@ -391,8 +391,8 @@ static inline void __hlist_del( struct hlist_node* n )
static inline void hlist_del( struct hlist_node* n )
{
__hlist_del( n );
n->next = LIST_POISON1;
n->pprev = LIST_POISON2;
n->next = (struct hlist_node*)LIST_POISON1;
n->pprev = (struct hlist_node**)LIST_POISON2;
}
/**
@ -417,7 +417,7 @@ static inline void hlist_del( struct hlist_node* n )
static inline void hlist_del_rcu( struct hlist_node* n )
{
__hlist_del( n );
n->pprev = LIST_POISON2;
n->pprev = (struct hlist_node**)LIST_POISON2;
}
static inline void hlist_del_init( struct hlist_node* n )