The C++ compiler is more strict in that it refuses to assign a void* to a struct list_head*. Fix that by explicitly casting the poisonning constants. (Tested with all 5 frontends, now.)
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -125,7 +125,7 @@ static inline void __list_del(struct list_head *prev, struct list_head *next) · 124 unmodified lines | ||
| 125 | 125 | static inline void list_del(struct list_head *entry) |
| 126 | 126 | { |
| 127 | 127 | __list_del(entry->prev, entry->next); |
| 128 | − entry->next = LIST_POISON1; | |
| 129 | − entry->prev = LIST_POISON2; | |
| 128 | + entry->next = (struct list_head*)LIST_POISON1; | |
| 129 | + entry->prev = (struct list_head*)LIST_POISON2; | |
| 130 | 130 | } |
| 131 | 131 | #endif |