kconf: Fix build with gcc 5.1.1
Building zconf.hash.c fails with gcc 5.1.1 from Fedora 22: In file included from zconf.tab.c:159:0: zconf.hash.c:233:55: error: ‘kconf_id_strings_contents’ is static but used in inline function ‘kconf_id_lookup’ which is not static [-Werror] zconf.hash.c:226:23: error: ‘kconf_id_hash’ is static but used in inline function ‘kconf_id_lookup’ which is not static [-Werror] register int key = kconf_id_hash (str, len); ^ zconf.hash.c:177:26: error: ‘wordlist’ is static but declared in inline function ‘kconf_id_lookup’ which is not static [-Werror] static struct kconf_id wordlist[] = ^ Import the necessary change from the latest Linux source tree. Change-Id: Ib6297b5cc3da161bd99c2e92c366206e6c08b4e5 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
dba6188b58
commit
15bf447614
1 changed files with 3 additions and 0 deletions
|
@ -161,6 +161,9 @@ static struct kconf_id_strings_t kconf_id_strings_contents =
|
|||
#define kconf_id_strings ((const char *) &kconf_id_strings_contents)
|
||||
#ifdef __GNUC__
|
||||
__inline
|
||||
#if defined __GNUC_STDC_INLINE__ || defined __GNUC_GNU_INLINE__
|
||||
__attribute__ ((__gnu_inline__))
|
||||
#endif
|
||||
#endif
|
||||
struct kconf_id *
|
||||
kconf_id_lookup (register const char *str, register unsigned int len)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue