From patchwork Fri Feb 2 16:15:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 126745 Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp781831ljc; Fri, 2 Feb 2018 08:17:10 -0800 (PST) X-Google-Smtp-Source: AH8x2272te3Y78skwq+AUz26olOZRtitNWIklILbDZd/7z8q7rthnMgX/fXjknab2fLkSNuUucIP X-Received: by 2002:a17:902:6716:: with SMTP id f22-v6mr36228303plk.180.1517588229906; Fri, 02 Feb 2018 08:17:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517588229; cv=none; d=google.com; s=arc-20160816; b=q4WKTHXRCZypewT0rQI21a2G65c4OYtUMd5V0L6o8klw4MNNfJipB7sJPVPWxCnfVh DLRiVxQoZZOvvRklQoOhMxobbXDRJZGR98iJJW/mn2ZpChL6pfvDqXHiH55FqEWe14jV Ud7ZbiL6IDlu0fP79fQ+QYmOJXOxAz29cFvhKbKZSMW8sLBUOOOb3Vqj+lDFSLXlLNXO OzE2ebwDVMlZK7ybu83KjYVnLPxqTkgJSasje3HQo7j1mioO5fUa37O7J5KDrJczAJGM mnjzst0/uV6L9AK+qaJwUp+iu23E/rKf1QDr9ipCaCD5nN5xuYgZC98HvMExCJw76HDd vTvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:in-reply-to:message-id:date :subject:cc:from:arc-authentication-results; bh=RH6eV1i002G21PXtGB6ctkFfrCRp7/iJo2VFr7bi9oE=; b=XuoxxykWWJASPRSwBFYlWcVLYhEbQI59kJKGhKy3S2bUTDm/Zygngz1ENymM2qObvW ERrnG6kMzQOkvzBDcHNMrFwlshvfnw6qbx+fVCGcDhO1H7nnVkdbvZIOq+sAVnS/NGvn TlnLZ7tzvG8GrJjT6Zl/Y6rbahgpV16jY3mDfKKBldbuOLjac27THgO6tLQWlcNGSYYh erpJY4RAjWq6rPHtj2KsxMaRDP8J4DAAZSwCefyU4Smwsj4VS0yg+dFKVQZN/5HeCwwF +8zdxeEFwzfXL5f0dQL8ER3jIG3A1JrlQmsp2NI5p6iMCBKFrwn1Ti9GeUosEofmkWVP q/+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x13si1659529pgp.281.2018.02.02.08.17.09; Fri, 02 Feb 2018 08:17:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752164AbeBBQRH (ORCPT + 28 others); Fri, 2 Feb 2018 11:17:07 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:54141 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751651AbeBBQQ7 (ORCPT ); Fri, 2 Feb 2018 11:16:59 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue006 [212.227.15.129]) with ESMTPA (Nemesis) id 0MYpHi-1eDVw41xEg-00VQpf; Fri, 02 Feb 2018 17:16:54 +0100 From: Arnd Bergmann Cc: Nicolas Pitre , Andi Kleen , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, Arnd Bergmann Subject: [PATCH 1/7] [HACK] lto: make config.gz symbol visible Date: Fri, 2 Feb 2018 17:15:39 +0100 Message-Id: <20180202161550.2106846-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180202161550.2106846-1-arnd@arndb.de> References: <20180202161550.2106846-1-arnd@arndb.de> X-Provags-ID: V03:K0:1tkGLNEY/roAnh6B7UqTAMJPkDW3vKN2aKLhqSwgFI1PGEh87I1 bWksHtxO+0wP8Gg1Jo3DbTbx5Rh0EboLiE2h9P973e3f+ozSNfezlXHHkqezqpNDWmHsEtL va6ovSP7lCKLTdI2PYZz8/VI4jC5enu+fotd4chUogtwf/rzwJLeSkYSU1fQj7idfKzEbxz ofr3LO1fdaAlpjHxOLquQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:IYZmf6V764Y=:k679xQ/aEfI1gAq7nroLit KG9qjH+wd56+15iTD9qo0GZHbKOXW2v68EY5u4FFSiAMjVEq54+s8oITSrLLwz5J3/dxJTjmg l58ikoJlPcmpxaHAxVPKvaZxW6YcS9Nhlx43wiq9tRr/vWmnrdw06ehTKMjq8/xkiICHrOOC5 xznnv0WVTZb3vdcd9A+iD3gXt7uBKFrgtjV8bvDAtiSibCJloDYyJnja8It/bIjCgQX9uOmeD KQPYgZoLkNBBPFC0SAKgiQ/c93KHAtolWFTKGhb71HOPOKFjKlP3k0xnvJelWszfgOXnBgRwE hVHuJoWZ5Un4jTDmV1HjAzKQIEu277kWrTfCYajnSu9nrJL7zSpFU9rAqaDzScWgG9lR4De1n S5NtjizWJuGntkPnRfLQoMa6i5gc/XVwA/JhwJ5zFDWpnrozzNyKIo23YVEhfod9hYPDYhHZR AtyPoigsOzZ8s4F1H/WoLvp4t8B9UI+5HMnvkmxQ1VhXDnMVitpQj6CaU8Bz/wpvFEzak355F X7bN+TJ1IR443IvCi62Xz3kWLWFOgGStu9keRumrPQd2QCckFaIO9/DACAsBkX+CLAOs/h48w Jo2dfKjowchIJRslLYbaDwh2cpsq0o22Nj/LiHP2NLgDFSNxOWLwDve1ynz5kaqsla5DyxF+T 8A6pTxMgy1Fxq3vcZOQCMhsbDdVJnHbinrQ2cOAzZKcoMQJYe+EmkYdn7vDt8bVU4w2GNNhkL tV0u9iQ64hFb8uVQGs2v09qROFtu8zY7gu//QA== To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- kernel/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0 diff --git a/kernel/Makefile b/kernel/Makefile index 7666ee88e237..40b48e3e87a2 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -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)