Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3613279ybd; Fri, 28 Jun 2019 11:42:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9Xd4UpozGjSwO2zgnbzIVRBlQVn6Vv0xUerxUa1JnSymbGmgzYXSJD2DSVN0x0u0dNPlR X-Received: by 2002:a63:b04a:: with SMTP id z10mr10398786pgo.18.1561747347594; Fri, 28 Jun 2019 11:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561747347; cv=none; d=google.com; s=arc-20160816; b=DhTWZEYkFHIHRYR+IDzt0E+OatqUhp+GtRr/2kxPpZTnAf90E0k5fGGrTY5rWh0xge HsuQpEvc77FnZZ7NpHq55ai44Il/Jb0xKVF8adfUnbdIS6b8SRoL7SU5+I3qNDr7KDK/ lIAEoDuN8twPRuE/XhQnZLTbZa/HB4vKnGIZr6uPyotLKrNJPb5QQ4+eLslnL44wIm/m SzvC1pLgm9IT4dFbn6sEALZ2h96Tl3uBkBZf4svQm1Wl5SDVOhQiCooYmi6nTd1nfv95 mDiBV+XV6eMRMtVLbC3mnowGAVMyfb1FGO/l6ZqntTztWqVlFeUmmeiaFbkufNLMvpBa ai4g== 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=wA9zq4EpB5GqEIS9VlPDCB89AZFN6Q0nB2eYYfARfi0=; b=zv3A7dshhxhtqPkBhT6JXbTV6ZE+ty+n1GJ16gEYBvFfl55ZQBFoFFpkj4OIc3xpVw 0X1sFkSYCflz0anHpQ7th+OhBqU1i1euEsIS8y34Abp93bQaUc4P+jrJtXh2/TkAe4fn SDrpbvqV2CzxLMt9zDsvVIdtyOt+KbBx75R2ekC2siIO6ATgldZYdEEXLj/MF0U3ry8n djCSZRiRmv+xj3antLuLMh+KhrIjnDYvV7QKf7tC86fZVOrbPH4NB2mgm7a6IT5ynK3x KGWFcKaiOLmC0cG5fH59JXHtvJK6kfWdy4Zc6PsJgAK712ef/e5COLetHEvGGG45AT8N jarw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=z6HYNfmX; 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 m129si3054222pfm.118.2019.06.28.11.42.12; Fri, 28 Jun 2019 11:42:27 -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; dkim=pass header.i=@kernel.org header.s=default header.b=z6HYNfmX; 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 S1726807AbfF1Ski (ORCPT + 99 others); Fri, 28 Jun 2019 14:40:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:54344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726498AbfF1Skh (ORCPT ); Fri, 28 Jun 2019 14:40:37 -0400 Received: from mail-vs1-f53.google.com (mail-vs1-f53.google.com [209.85.217.53]) (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 F3D48214DA; Fri, 28 Jun 2019 18:40:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1561747236; bh=wA9zq4EpB5GqEIS9VlPDCB89AZFN6Q0nB2eYYfARfi0=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=z6HYNfmX9kFc4w+8yOcEA2a0W0JoABYa4XASgS/vCr3NcqtOsUJoi4DxceUc2z/H1 bYZuRgQxI0fWjLLWiDbMAfMqr4xFGK048bbG4j2mX9gEM3223XSY4uHZnDxaSthnkO eCy8KUbzy/yToi1cM7qvO+8M3NhEfsc3vIxOGpCs= Received: by mail-vs1-f53.google.com with SMTP id k9so4699699vso.5; Fri, 28 Jun 2019 11:40:35 -0700 (PDT) X-Gm-Message-State: APjAAAUBHKEJrjbFwnxK65jYXRgqoq50OtHDkWqouCicT0BP3gr1rMeo F1eyden1D+EGqMoIGwnKIlhgXWSRn5nHTfAyUf8= X-Received: by 2002:a67:f2d3:: with SMTP id a19mr7217210vsn.240.1561747235159; Fri, 28 Jun 2019 11:40:35 -0700 (PDT) MIME-Version: 1.0 References: <1471462023-119645-1-git-send-email-cristina.moraru09@gmail.com> <20160818175505.GM3296@wotan.suse.de> <20160825074313.GC18622@lst.de> <20160825201919.GE3296@wotan.suse.de> <20190627045052.GA7594@lst.de> In-Reply-To: <20190627045052.GA7594@lst.de> From: Luis Chamberlain Date: Fri, 28 Jun 2019 11:40:22 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 0/5] Add CONFIG symbol as module attribute To: Christoph Hellwig Cc: Brendan Higgins , Cristina Moraru , "vegard.nossum@gmail.com" , Valentin Rothberg , Hannes Reinecke , Sam Ravnborg , Michal Marek , "linux-kernel@vger.kernel.org" , Tom Gundersen , Kay Sievers , Rusty Russell , Andrew Morton , backports@vger.kernel.org, Guenter Roeck , Greg Kroah-Hartman , "rafael.j.wysocki" , Dmitry Torokhov , Takashi Iwai , Mauro Carvalho Chehab , Johannes Berg , Hauke Mehrtens , Paul Bolle , Paul Gortmaker , Alexey Khoroshilov , Sathya Prakash Veerichetty , "Martin K. Petersen" , Laurence Oberman , Johannes Thumshirn , Tejun Heo , Jej B , "Theodore Ts'o" , Daniel Jonsson , Andrzej Wasowski 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 Wed, Jun 26, 2019 at 9:51 PM Christoph Hellwig wrote: > > On Wed, Jun 26, 2019 at 03:21:08PM -0700, Luis Chamberlain wrote: > > On Tue, Feb 5, 2019 at 2:07 PM Luis Chamberlain wrote: > > > In lieu of no Luke Skywalker, if you will, for a large kconfig revamp > > > on this, I'm inclined to believe *at least* having some kconfig_symb > > > exposed for some modules is better than nothing. Christoph are you > > > totally opposed to this effort until we get a non-reverse engineered > > > effort in place? It just seems like an extraordinary amount of work > > > and I'm not quite sure who's volunteering to do it. > > > > > > Other stakeholders may benefit from at least having some config --> > > > module mapping for now. Not just backports or building slimmer > > > kernels. > > > > Christoph, *poke* > > Yes, I'm still totally opposed to a half-backed hack like this. The solution puts forward a mechanism to add a kconfig_symb where we are 100% certain we have a direct module --> config mapping. This is *currently* determined when the streamline_config.pl finds that an object has only *one* associated config symbol associated. As Cristina noted, of 62 modules on a running system 58 of them ended up getting the kconfig_symb assigned, that is 93.5% of all modules on the system being tested. For the other modules, if they did want this association, we could allow a way for modules to define their own KBUILD_KCONF variable so that this could be considered as well, or they can look at their own kconfig stuff to try to fit the model that does work. To be clear, the heuristics *can* be updated if there is confidence in alternative methods for resolution. But since it is reflective of our current situation, I cannot consider it a hack. This implementation is a reflection of our reality in the kernel, and as has been discussed in this thread, if we want to correct the gaps we need to do a lot of work. And *no one* is working towards these goals. That said, even if you go forward with an intrusive solution like the one you proposed we could still use the same kconfig_symb... So no, I don't see this as a hack. It's a reflection as to our current reality. And I cannot see how the kconfig_symb can lie or be incorrect. So in fact I think that pushing this forward also makes the problem statement clearer for the future of what semantics needs to be addressed, and helps us even annotate the problematic areas of the kernel. What negative aspects do you see with this being merged in practice? Luis