Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp160550ybl; Wed, 4 Dec 2019 00:06:00 -0800 (PST) X-Google-Smtp-Source: APXvYqyzB3hedl0c+hGwQSLurdSOZ8W9xUmCfaef1aiy6uUJ7/fTRxAR2nekXrjwlNbuYqCRUPE2 X-Received: by 2002:aca:1e11:: with SMTP id m17mr1562805oic.100.1575446760431; Wed, 04 Dec 2019 00:06:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575446760; cv=none; d=google.com; s=arc-20160816; b=ScSyOD+k8D1hRsVeAOKNLRDJFo7f5Kb/YEtmowi1XntBPn/6QVuyw6OY8S0Q+KHtag 7y+2vSI4R2jND/P0LeEOL/MKQUBQMtak4Q8ilgD6d20mi9xhd5OIsc79nS7MkR2ZldCM 5Ppxi1FKqUmVOTMH41EQkoR/U0oNkIAfaS28ImV2CHReN8UI4+2q+NxS3S8URSWthmj8 /r11oKcgFvwB7xeHfQ1XD5dE1OmslWgjPpmW2rPBTT8TkTGwgfitAioyr4ZGQo9y1ORI 5N2Tbj7DwJQVziXCkVTjaW70J74usFcP6aKbRPT8zpZgDB71tgSH5UeW0Rw2iOeFrcgO Cxrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=vzmSszUb11ZTd3CAOQhLM1Oej3uQN3VCcm6xAiMI9lE=; b=szRTQlJwArASsffMYyHlpksoFawKXB/L1jzsr+3+o+Dym3qHMxlgW2LGBSYrplRXJH FSMhDyDryHyNVQd3lA5eMX4ORmUJLv98JdKvESdb0yhb9VSHMCkHZhFgjtMeXNkBWxif 8/b/FPZgtBWDZaR8BYZiajz604FVNoXj4jfBku20Tik2SavLrq7yVHQK1NiCmUtlhCv+ nS8DPx/RU3e42g6nKXNdjHVel55EL/e1JCh9thAc5yqSjr9XcxEr/+bZW9/BKofL62Oi pUez6vOUdLvO6PO1hbuxgUJRGYWCcdYTK6gXIb7Gsdtj5nttlr/FD7eW9uV7EzClKdJ8 VA8Q== 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 l8si2851615otq.75.2019.12.04.00.05.45; Wed, 04 Dec 2019 00:06:00 -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 S1726899AbfLDIFC (ORCPT + 99 others); Wed, 4 Dec 2019 03:05:02 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:46155 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbfLDIFC (ORCPT ); Wed, 4 Dec 2019 03:05:02 -0500 Received: by mail-oi1-f195.google.com with SMTP id a124so5992666oii.13 for ; Wed, 04 Dec 2019 00:05:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vzmSszUb11ZTd3CAOQhLM1Oej3uQN3VCcm6xAiMI9lE=; b=T7lCSMbfMgSfjt3wGiS8tAm/EK0fdQ5YylhZCBYtk11JTitW+BA6ij4XkVPlUDC46V DotZ/FMiWDF3ksUD0U8nL3dQISEQ769WBHy9MWnqMkUeKwocEBGCk02mgzzXEiJJyjJk VM+DP7hdlmD1/Vq/G8eBOLiGNPsrj581+mjDWPHMdxgC5I25HTnHfoL0W0PAA09tZsX+ XTcdwsLA4In6xTd8tTysU6kzT0Avu6ajAR9klqKLsknRffirPhszPV8+lvugxyPk3A8z M7yWj0u0YSsAyLX8mHYckZlz4OEvuq0Fm7t5ieBC0THCq1E4NxxhykWUJvG+15TZdEp5 JvZA== X-Gm-Message-State: APjAAAVz/fnezkdyYOd4O4IJkiZuvGHIvIia9/pNy0XZgS1dZyDPdiXH DAsY5AxBcsDkpX1YvifmEcABFZA5LuawhhIhWJw= X-Received: by 2002:aca:3a86:: with SMTP id h128mr1465019oia.131.1575446700716; Wed, 04 Dec 2019 00:05:00 -0800 (PST) MIME-Version: 1.0 References: <20191202211844.19629-1-enric.balletbo@collabora.com> <20191202211844.19629-2-enric.balletbo@collabora.com> <3355589d-0b0d-f30f-624c-0f781ee9cd8d@collabora.com> In-Reply-To: From: Geert Uytterhoeven Date: Wed, 4 Dec 2019 09:04:49 +0100 Message-ID: Subject: Re: [PATCH 1/2] x86_64_defconfig: Normalize x86_64 defconfig To: Krzysztof Kozlowski Cc: Enric Balletbo i Serra , "linux-kernel@vger.kernel.org" , Collabora Kernel ML , Guenter Roeck , Benson Leung , Dmitry Torokhov , fabien.lahoudere@collabora.com, Guillaume Tucker , "H. Peter Anvin" , Borislav Petkov , "the arch/x86 maintainers" , Thomas Gleixner , Ingo Molnar , "Ahmed S. Darwish" , Geert Uytterhoeven , Alexey Brodkin , Andrew Morton , Ard Biesheuvel , Steven Rostedt , Marek Szyprowski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Krzysztof, On Wed, Dec 4, 2019 at 2:15 AM Krzysztof Kozlowski wrote: > On Tue, 3 Dec 2019 at 18:01, Geert Uytterhoeven wrote: > > On Tue, Dec 3, 2019 at 10:26 AM Krzysztof Kozlowski wrote: > > > On Tue, 3 Dec 2019 at 17:05, Enric Balletbo i Serra > > > wrote: > > > > On 3/12/19 3:15, Krzysztof Kozlowski wrote: > > > > > On Tue, 3 Dec 2019 at 05:18, Enric Balletbo i Serra > > > > > wrote: > > > > >> > > > > >> make savedefconfig result in some difference, lets normalize the > > > > >> defconfig > > > > >> > > > > > > > > > > No, for two reasons: > > > > > 1. If running savedefconfig at all, split reordering items from > > > > > removal of non needed options. This way we can see exactly what is > > > > > being removed. This patch moves things around so it is not possible to > > > > > understand what exactly you're doing here... > > > > > > > > Ok, makes sense, I can do it, but if you don't really care of having the > > > > defconfig sync with the savedefconfig output for the below reasons or others, > > > > that's fine with me. > > > > > > > > The reason I send the patch is because I think that, at least on some arm > > > > defconfigs, they try to have the defconfig sync with the savedefconfig output, > > > > the idea is to try to make patching the file easier, but I know this is usually > > > > a pain. > > > > > > Till I saw DEBUG_FS removal and Steven's answer, I was all in in such > > > patches from time to time. However now I think it's risky and instead > > > manual cleanup of non-visible symbols is better. > > > > IMHO, it's the maintainer's responsibility to refresh the defconfig(s) > > regularly, from known good config(s). > > > > I.e. you start from a known good .config, run "make oldconfig", verify > > the changes by comparing the .config before/after, and run "make > > savedefconfig" afterwards. > > > > You do not run blindly "make _defconfig && make savedefconfig", as > > that means you'll miss out on new options you may want, and will loose > > old options that are no longer selected by other options. > > Instead of keeping this known good config somewhere outside it should > be just equal to defconfig. There is no point to trim it with > savedefconfig and then later experience missing options (because some > option was a dependency but now is not). Instead, all visible options > (possible to select) should be explicitly defined by defconfig to > avoid what happened with DEBUG_FS. While I agree that would fix the issue, it would revert to the situation before we had savedefconfig. Hence it would cause much more churn to the checked-in defconfig files, which is the reason why savedefconfig was introduced in the first place.... > I assume here that when removing > non-visible options from dependency, all defconfigs would be updated. I'm afraid that part will never happen... Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds