@@ -120,7 +120,7 @@ targets += config_data.gz
$(obj)/config_data.gz: $(KCONFIG_CONFIG) FORCE
$(call if_changed,gzip)
- filechk_ikconfiggz = (echo "static const char kernel_config_data[] __used = MAGIC_START"; cat $< | scripts/basic/bin2c; echo "MAGIC_END;")
+ filechk_ikconfiggz = (echo "const char kernel_config_data[] __used __visible = MAGIC_START"; cat $< | scripts/basic/bin2c; echo "MAGIC_END;")
targets += config_data.h
$(obj)/config_data.h: $(obj)/config_data.gz FORCE
$(call filechk,ikconfiggz)
building with LTO enabled, I often get warnings about kernel/configs.c being empty when CONFIG_IKCONFIG is disabled: x86_64-linux/bin/nm: kernel/configs.o: no symbols Making the symbol visible is probably not the right solution, but it does get rid of the warning. Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0