Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp505128pxb; Wed, 24 Feb 2021 07:47:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyaQVaASQlwq7qEOtFidRqAEdIzhxZE7RMTXNBAg6NviqGO5lOlDVwkbtl1AxhtZfs0/LvF X-Received: by 2002:a17:906:39c5:: with SMTP id i5mr7659228eje.163.1614181654815; Wed, 24 Feb 2021 07:47:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614181654; cv=none; d=google.com; s=arc-20160816; b=g17pzYJiG70f7O5eYtRMNZI3aUU9lhktAPDtqJf3jf//cz9tWN323sblw/sqSPXQrZ OYDlk51qqgxyuvary8pWGfNEr/k5Boa7NWAz3it/pItB3Wo5/z7txkhxyOFrKqRYgSyK 0p+Dbt4E2OaYMKj3CJvDzw79cViRR1a9LCLpa7ZA8dyRzp0Ak8NmvGqHp+xpwfCa6jtM 3oq7xhSzx2UILQmfRwnaCPprG2XhPC14fXFkGC4QHjfMOq43NRU6SKLyAJNLZOs0Gmlw 09pcL0a27K8N8BbGUMWf4pf2tODDYvlW5cJrzcVzkjtujI3eEihaLpn8FPSYr6VrbJTJ FA5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=NIWEdfGUaXEX61U7ewWCrRL/WDTFKxJMVqc8souGXLc=; b=F15xPQOKEmqsVbgtvSn1IBOrKrdKGti7lwLcfVg1hmA9UbtzrqE2Qs/hvLZTRgTCsV agP1wwvImAT845135jYyhZecFkh72/GoQDsYx+Br3OUTqkbBX3co7efr0acE8UiTMKdJ 03PFdUhTZ/y5Tft2naARQ1uPloA5DRzglTV/jPYQ0COJTRCzVO+uA/poafBJKMssSCwr Orqu1BrFrMaT6bcBp4xEjvrIqujchdcGYzaAHch8dsJVjzk2B2sv34xVhlayxp2NaDdu IRVDW28g2nKvVk0WD4nhBsiKF3j3YvGORPW+fkhH9VWgryU/tEBs+oPMf9tX6ZZIxUuE 3jFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ipGu0GmG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id d10si1411837edo.152.2021.02.24.07.46.54; Wed, 24 Feb 2021 07:47:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ipGu0GmG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S234545AbhBXPpN (ORCPT + 99 others); Wed, 24 Feb 2021 10:45:13 -0500 Received: from conssluserg-03.nifty.com ([210.131.2.82]:17930 "EHLO conssluserg-03.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236848AbhBXPcZ (ORCPT ); Wed, 24 Feb 2021 10:32:25 -0500 Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 11OFVM0R013852 for ; Thu, 25 Feb 2021 00:31:22 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 11OFVM0R013852 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1614180682; bh=NIWEdfGUaXEX61U7ewWCrRL/WDTFKxJMVqc8souGXLc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ipGu0GmGri8+0bHRB5q3meEs9UQ+CidKup2plvxzqNw2HXnG8G5inGjoILgYdHZWH ls3zbv9Q7yhuo4BXu+B+zCw+sEmUvl6+x8xwVvfBMrU+TZ5RfzHxGRs1XyPVPQeS48 K7T/zmqXzUoYu+NIeMok3KfKDUVZfVfFN9EAUAXkXbqdzjMFsRiSgQAhDXjYpT8Sla pYycS+yzmW8eoWJdqcPasel5dH1FBdKX6BHmemJUqtxFNBWMBTHOei8E3jVXORDU88 IHRCWffn5COOoFEUMLtJImKOop7sQQ2rfc8xvXi4c62iLS0RionbROCQQDTXPhPDOD C9fHnFsnKMbcw== X-Nifty-SrcIP: [209.85.210.178] Received: by mail-pf1-f178.google.com with SMTP id b145so1551028pfb.4 for ; Wed, 24 Feb 2021 07:31:22 -0800 (PST) X-Gm-Message-State: AOAM531G+6w4knjIOWh1fceTtn4T37Lixw2iwbMO4B1I2bR8apOIZY/E 8M3TfDvj2FSePX50QAJjuE2gwD35CHJlhYUOgwU= X-Received: by 2002:a63:cc4f:: with SMTP id q15mr14513218pgi.47.1614180681653; Wed, 24 Feb 2021 07:31:21 -0800 (PST) MIME-Version: 1.0 References: <20210223200130.GA8059@lst.de> <20210224075220.GA546@lst.de> In-Reply-To: From: Masahiro Yamada Date: Thu, 25 Feb 2021 00:30:44 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] Modules updates for v5.12 To: Jessica Yu Cc: Christoph Hellwig , Linus Torvalds , Linux Kernel Mailing List , =?UTF-8?Q?=EF=BF=BCMiroslav_Benes?= , Emil Velikov Content-Type: multipart/mixed; boundary="0000000000002288ab05bc16ba0a" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --0000000000002288ab05bc16ba0a Content-Type: text/plain; charset="UTF-8" On Wed, Feb 24, 2021 at 11:46 PM Masahiro Yamada wrote: > > On Wed, Feb 24, 2021 at 11:13 PM Jessica Yu wrote: > > > > +++ Christoph Hellwig [24/02/21 08:52 +0100]: > > >On Tue, Feb 23, 2021 at 12:07:39PM -0800, Linus Torvalds wrote: > > >> On Tue, Feb 23, 2021 at 12:03 PM Linus Torvalds > > >> wrote: > > >> > > > >> > This is unacceptably slow. If that symbol trimming takes 30% of the > > >> > whole kernel build time, it needs to be fixed or removed. > > >> > > >> I think I'm going to mark TRIM_UNUSED_KSYMS as "depends on BROKEN". > > >> There's no way I can accept that horrible overhead, and the rationale > > >> for that config option is questionable at best, > > > > > >I think it is pretty useful for embedded setups. > > > > > >BROKEN seems pretty strong for something that absolutely works as > > >intendended. I guess to make you (and possibly others) not grumpy > > >we just need to ensure it doesn't get pulled in by allmodconfig. > > > > > >So maybe just invert the symbol, default the KEEP_UNUSED_SYMBOL, and > > >add a message to the helptext explaining the slowdown? > > > > Hm, something like this maybe? (untested) > A patch attached, if Linus is OK to re-enable this. -- Best Regards Masahiro Yamada --0000000000002288ab05bc16ba0a Content-Type: text/x-patch; charset="US-ASCII"; name="0001-Kbuild-re-enable-TRIM_UNUSED_KSYMS-under-the-conditi.patch" Content-Disposition: attachment; filename="0001-Kbuild-re-enable-TRIM_UNUSED_KSYMS-under-the-conditi.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kljlgcbn0 RnJvbSAyZWI4ODY0OGFmZjk1NDdkMWMxMGRmODQxZDFhYzYxYWMyMzY5ZGY2IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBNYXNhaGlybyBZYW1hZGEgPG1hc2FoaXJveUBrZXJuZWwub3Jn PgpEYXRlOiBXZWQsIDI0IEZlYiAyMDIxIDIzOjUyOjU0ICswOTAwClN1YmplY3Q6IFtQQVRDSF0g S2J1aWxkOiByZS1lbmFibGUgVFJJTV9VTlVTRURfS1NZTVMgdW5kZXIgdGhlIGNvbmRpdGlvbiBv ZgogIUNPTVBJTEVfVEVTVAoKVGhpcyBvcHRpb24gaXMgdXNlZn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