]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: fix lists definition for C++
authorYann E. MORIN <yann.morin.1998@free.fr>
Mon, 29 Apr 2013 17:50:32 +0000 (19:50 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Mon, 29 Apr 2013 17:55:56 +0000 (19:55 +0200)
commitfe84d69c2e59086d263f42e01e2899dd09471f6a
tree5e20a9368c7d6f0f13429009d03f7fe73e18bf50
parentc424901c2abc3415d4624028dde005c6f000158c
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>
scripts/kconfig/list.h