]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: qconf: fix incomplete type 'struct gstr' warning
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 8 Sep 2020 22:16:38 +0000 (07:16 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Sun, 20 Sep 2020 03:58:49 +0000 (12:58 +0900)
commitd855a61e42271986357c562cf1cc13429b0c46ea
treeddcbbaabe7ad3a3cd9a3c675c8e17f0d7f5dbf65
parent84fe3424272a7f3742e4e86d251f88085206c00e
kconfig: qconf: fix incomplete type 'struct gstr' warning

"make HOSTCXX=clang++ xconfig" reports the following:

  HOSTCXX scripts/kconfig/qconf.o
In file included from scripts/kconfig/qconf.cc:23:
In file included from scripts/kconfig/lkc.h:15:
scripts/kconfig/lkc_proto.h:26:13: warning: 'get_relations_str' has C-linkage specified, but returns incomplete type 'struct gstr' which could be incompatible with C [-Wreturn-type-c-linkage]
struct gstr get_relations_str(struct symbol **sym_arr, struct list_head *head);
            ^

Currently, get_relations_str() is declared before the struct gstr
definition.

Move all declarations of menu.c functions below.

BTW, some are declared in lkc.h and some in lkc_proto.h, but the
difference is unclear. I guess some refactoring is needed.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Acked-by: Boris Kolpackov <boris@codesynthesis.com>
scripts/kconfig/lkc.h
scripts/kconfig/lkc_proto.h