Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2040278ybl; Tue, 3 Dec 2019 17:17:13 -0800 (PST) X-Google-Smtp-Source: APXvYqxqJNr3QChotgI1+rk0xNxLV9GX2Wy1K5URN/IpOmyDnWzi/FbyEkk7a9cBjEQTD1G3aViQ X-Received: by 2002:aca:b38b:: with SMTP id c133mr560951oif.2.1575422233576; Tue, 03 Dec 2019 17:17:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575422233; cv=none; d=google.com; s=arc-20160816; b=nSDO29S0EI7fqWarxYt+Y7kVFsvNKBCOofqg+wg/js+dr8tctzDU7/NifV8eSTRWW5 HMxQWpt6oBE81RiLLGJrDHhJaEv/WHS+2p5fZmXFiBoptG1pv3dP7ZmNM21zNDq7SdPZ qC0Cuawe2d1WIerxxYP0unT/ydSghGsjogJP2ig7CTYYOJ4TLLcMn/88Nyr1SL4SOh9I 6zcrqkt0PiKibe+pND3WvfARfmo/DuKm0uCz5ycaV7Pes13UvEDQb6UgzgkvhjGbamtt Pb35IHokf+OqRcF5t0CuMDfD3kJg/VP8MXNFjqf1jpnBcNoG649QPBqhMLr/RMqWoHqh ug8g== 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:dkim-signature; bh=ZEkpuT0z/bBmq6scGtoJ6Khafcm4MHS0w+KUsxg6SP8=; b=gb1D62gJq2WLHEUSpAReRXp8b1Prss/3E5NQBpMnG9CzwlmdZ88fB3tlWnnRY3Br6k wnS2kM3YNoi1PgUP6J+E+yndLT2HSeAh1ovjWT/c9R52uP3h/g8SpURWlfK1CRYluY0h CxXjnkuRvGfPL8+X6kQF4gQL3XXRbNoZEPZTPxIHJ2sQTMotOH4kr35lkw6CFsJNb22x yCYAk2mO5ahvGwbMywysoUXn1lHOJW9GO13BWmKDBiMQOpPtCv0jfi0Lh6ZBN8wuhdtn KwEdvur1PrhjUEtGnhfA8mLrt58zbLyVnz1sl0nIbmVjDOqLZQN4DxkYQeuYnWfxr+wC pD+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cG+4aafv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si2290267oib.48.2019.12.03.17.17.01; Tue, 03 Dec 2019 17:17:13 -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; dkim=pass header.i=@kernel.org header.s=default header.b=cG+4aafv; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726592AbfLDBP1 (ORCPT + 99 others); Tue, 3 Dec 2019 20:15:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:48926 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbfLDBP1 (ORCPT ); Tue, 3 Dec 2019 20:15:27 -0500 Received: from mail-lf1-f43.google.com (mail-lf1-f43.google.com [209.85.167.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BEBF52073B for ; Wed, 4 Dec 2019 01:15:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575422126; bh=ZEkpuT0z/bBmq6scGtoJ6Khafcm4MHS0w+KUsxg6SP8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=cG+4aafv1E8nno0ItzZf943IV1POqdvOU/T2dzdtaGKJHKSGJ+MYyv0gyQpx71RPc flDsIyk2ZloOpa42YmyOcF6VgJfjMSReVOU7H7wxtnGH4S8HytgV8c7jQIJ0ooY3g8 9tR2BH7deynEm0CEyVYs3esoyCU8iJCfpwofwDo4= Received: by mail-lf1-f43.google.com with SMTP id m30so4637750lfp.8 for ; Tue, 03 Dec 2019 17:15:25 -0800 (PST) X-Gm-Message-State: APjAAAWJDRx8VUYzFDYsoO5Okrc6MlBLZ7wmy9Zf2oezN7kSS64i3r38 Yj3moeyGFaFAu1i6zQOCts4lOn5jXR/v0+YZA7k= X-Received: by 2002:ac2:5dc7:: with SMTP id x7mr472849lfq.24.1575422123956; Tue, 03 Dec 2019 17:15:23 -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: Krzysztof Kozlowski Date: Wed, 4 Dec 2019 09:15:12 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] x86_64_defconfig: Normalize x86_64 defconfig To: Geert Uytterhoeven 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 On Tue, 3 Dec 2019 at 18:01, Geert Uytterhoeven wrote: > > Hi Krzysztof, > > 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. I assume here that when removing non-visible options from dependency, all defconfigs would be updated. Best regards, Krzysztof