diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2013-04-29 13:50:32 -0400 |
---|---|---|
committer | Yann E. MORIN <yann.morin.1998@free.fr> | 2013-04-29 13:55:56 -0400 |
commit | 21ca352b71ca252e1933b1538fe89da8a04395c3 (patch) | |
tree | 5e20a9368c7d6f0f13429009d03f7fe73e18bf50 /scripts | |
parent | 23a5dfdad22a574d19d7cc19b391f9ce0d3c2f21 (diff) |
kconfig: fix lists definition for C++
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.)
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Randy Dunlap <rdunlap@infradead.org>
Cc: Benjamin Poirier <bpoirier@suse.de>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kconfig/list.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/list.h b/scripts/kconfig/list.h index ea1d58119d20..685d80e1bb0e 100644 --- a/scripts/kconfig/list.h +++ b/scripts/kconfig/list.h | |||
@@ -125,7 +125,7 @@ static inline void __list_del(struct list_head *prev, struct list_head *next) | |||
125 | static inline void list_del(struct list_head *entry) | 125 | static inline void list_del(struct list_head *entry) |
126 | { | 126 | { |
127 | __list_del(entry->prev, entry->next); | 127 | __list_del(entry->prev, entry->next); |
128 | entry->next = LIST_POISON1; | 128 | entry->next = (struct list_head*)LIST_POISON1; |
129 | entry->prev = LIST_POISON2; | 129 | entry->prev = (struct list_head*)LIST_POISON2; |
130 | } | 130 | } |
131 | #endif | 131 | #endif |