From patchwork Mon Jul 18 16:00:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102008 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp188206qga; Mon, 18 Jul 2016 09:02:15 -0700 (PDT) X-Received: by 10.107.1.20 with SMTP id 20mr33559095iob.74.1468857735699; Mon, 18 Jul 2016 09:02:15 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 20si17658516ios.3.2016.07.18.09.02.15; Mon, 18 Jul 2016 09:02:15 -0700 (PDT) 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 S1751695AbcGRQBd (ORCPT + 29 others); Mon, 18 Jul 2016 12:01:33 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:64511 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320AbcGRQBc (ORCPT ); Mon, 18 Jul 2016 12:01:32 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0LuY1A-1bG8X10hsW-00zoYy; Mon, 18 Jul 2016 18:00:47 +0200 From: Arnd Bergmann To: Linux Kbuild mailing list Cc: Michal Marek , "Yann E . MORIN" , Josh Triplett , Darren Hart , kernel-build-reports@lists.linaro.org, Thiago Macieira , Linux Kernel Mailing List , Masahiro Yamada , Arnd Bergmann Subject: [PATCH] kconfig: tinyconfig: provide whole choice blocks to avoid warnings Date: Mon, 18 Jul 2016 18:00:23 +0200 Message-Id: <20160718160035.3062818-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:0sDG9sov+L9lrHWm+DoHU0LloE0N203lail1zajp3ckt2iK8Fdo sKeEFDfuL/z9C5owH2zqt9Y6ZE+KdHgux6/e2rPfXrIaMWiu3hXm12KvK15bu3FuRmORaAi hpwrMWvQkBu7QNOuKp21Pi3aV0MRU7pdODG4wuTQyLxE8gcfmiFq4A8xSwS7+KdzBiuwe/9 c3atrCCyHspUyq1yfChAg== X-UI-Out-Filterresults: notjunk:1; V01:K0:5JJU8EICbRY=:RWCjAYGyVcOvcUVyYBT1Me TmvOIFm9arSJUPCnFGdZkq9+Rko0is0kcyisvyA73U/YUyXqzXLLznZdEwK1NU3azt2JCxUMO qtXwJhs2zJ6/34kbWUGu5ucSFCt4SRauciqe5K1+KqKTtgKJM1R2+bMQgr/ud2HxClUQXnkle lQk7JhsPIkReT0/kMOI7LQ2zk49XlUG6u7q9BO8ZxIs2HHJnFrDnJld5e+dSEo9bWYETd6AkS zw4ODvAN9rFAbZVGUdIsSe6bp13ziwmDzCfKfbyXRKpQkdMCccNejPfDRWvuPixKlIYM7ws+z baqJZ/Q7S7OKkPs1cqsJxTf5EqbcDjooMmBCCGbMFeyupbQBKjUXWuEuNzmYeJTWknttOEW/Z ySpieq5EcwIlkeItwzG/KZhF4SMCI6/329n94cMyErMRrYrNUylP0EG7HAZH5Y3JsdQkkrNLx AMbtD5yiFwW1ScMZTecNkUSo6IPg+6iXXyMbbe+XdYJuCvJ1NWV4nj6GPpQgGPkWTN0y/3dH0 G8uLvSxgRIUfCQqeq7C5cVxW5qURLUoKMfjaDjXCtupIDLWiS93+5Y7M6npYN16m0dB7BIkeP JIZ3Q2E71qpHnpyEKGdqmCJcuoivnX+h8Fw6P7bT5oknyB+/cQ3pESP06uk6PsTmxSM4j0T/U 2WeAZdrybXCTFz0+o+ld2PvJn8Ow+kflsmg6OtaHvjLgVgBebpSc55wtVQdYtaFeoJV4= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Using "make tinyconfig" produces a couple of annoying warnings that show up for build test machines all the time: .config:966:warning: override: NOHIGHMEM changes choice state .config:965:warning: override: SLOB changes choice state .config:963:warning: override: KERNEL_XZ changes choice state .config:962:warning: override: CC_OPTIMIZE_FOR_SIZE changes choice state .config:933:warning: override: SLOB changes choice state .config:930:warning: override: CC_OPTIMIZE_FOR_SIZE changes choice state .config:870:warning: override: SLOB changes choice state .config:868:warning: override: KERNEL_XZ changes choice state .config:867:warning: override: CC_OPTIMIZE_FOR_SIZE changes choice state I've made a previous attempt at fixing them and we discussed a number of alternatives. I tried changing the Makefile to use "merge_config.sh -n $(fragment-list)" but couldn't get that to work properly. This is yet another approach, based on the observation that we do want to see a warning for conflicting 'choice' options, and that we can simply make them non-conflicting by listing all other options as disabled. This is a trivial patch that we can apply independent of plans for other changes. Signed-off-by: Arnd Bergmann Link: https://storage.kernelci.org/mainline/v4.7-rc6/x86-tinyconfig/build.log https://patchwork.kernel.org/patch/9212749/ --- kernel/configs/tiny.config | 8 ++++++++ 1 file changed, 8 insertions(+) -- 2.9.0 diff --git a/kernel/configs/tiny.config b/kernel/configs/tiny.config index c2de56ab0fce..3eeade4d876d 100644 --- a/kernel/configs/tiny.config +++ b/kernel/configs/tiny.config @@ -1,4 +1,12 @@ CONFIG_CC_OPTIMIZE_FOR_SIZE=y +# CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set CONFIG_KERNEL_XZ=y +# CONFIG_KERNEL_GZIP is not set +# CONFIG_KERNEL_BZIP2 is not set +# CONFIG_KERNEL_LZMA is not set +# CONFIG_KERNEL_LZO is not set +# CONFIG_KERNEL_LZ4 is not set CONFIG_OPTIMIZE_INLINING=y +# CONFIG_SLUB is not set +# CONFIG_SLAB is not set CONFIG_SLOB=y