Received: by 2002:a05:6a10:83d0:0:0:0:0 with SMTP id o16csp161841pxh; Thu, 7 Apr 2022 17:28:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwCjBMf6OyiAYVKuqptqz4V7G+OBEH2j7YlKLSxm59/JVuDvvHvlmWxGslQGaOGBjfINL0C X-Received: by 2002:a65:644e:0:b0:382:800d:153a with SMTP id s14-20020a65644e000000b00382800d153amr13406826pgv.366.1649377681784; Thu, 07 Apr 2022 17:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649377681; cv=none; d=google.com; s=arc-20160816; b=gfq3MZTGuUrLdRAVbg0QlPWwH1GpAu1P74hvQTEq6KHX0+ofYlNM3fgdIEk8121/3a eXTrXEx+xfDRvkt6f3vG4bDCJ5HBMfQjAuz/Oxhk1Dnq+MeQtcExDT0o/8FjHle5ZulZ Me1u79hYPlCaR3OLXhQrNwwC5zT4pIF02RFL+moHSZ4MG1/C9EHIPLo8+guWYELtg8Ee 9PSebDBCA2RGqLjtbyo74ZJV16K1Y/KcOaV9LJAMdjjef1iOvLA4GUp1Y04Ra09ruf1y MLo1eCeLMXtRi7KYI/aCEYo1RR0qpZC0Do/d7tDPg5XGpoYInHmsOgFIjwq+wjJ42D08 n4Mg== 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=2xt6T2poF3Jb2rXQqjGy0tw2bFfsjebPGhPiXY6x8nE=; b=X2BZTHbrKNvWEY+sfX4/kjxAiyILNqa+X4M43u9mG8ymnvggQdUA4aX+x3K8xdXRch n5gHm+t2aT8HfW0B7nkkghnH3rMnKjZFY2j6lxiNUocuYTHmUEmZNvpg2T4a8V67Gm4G jcEXxGa5gR6uVnTY/IJZ+xKrw4efaalx7sP0MwHtFe1iTTPn5Y7u+IZOH0BLkc0SmcY1 Q72GZpCWmijUWg9Y4p//RMY4SocVb+pGy2xpdbn9HDqoXaGnCmVBFsbzmHCmJZxcmzRz DNRMu31ZgJGef5P2HIeUKHZRGd+aYGh9wehZv6OOEmy62WebjKiMHYkMAO6eBevqTgRK f9Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=UboELrms; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id d20-20020a056a00199400b004fa3a8dffaasi24568333pfl.97.2022.04.07.17.28.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Apr 2022 17:28:01 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=UboELrms; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A2F7B8C7E8; Thu, 7 Apr 2022 16:58:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232626AbiDGX76 (ORCPT + 99 others); Thu, 7 Apr 2022 19:59:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52726 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbiDGX75 (ORCPT ); Thu, 7 Apr 2022 19:59:57 -0400 Received: from conssluserg-02.nifty.com (conssluserg-02.nifty.com [210.131.2.81]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52C389FF2; Thu, 7 Apr 2022 16:57:55 -0700 (PDT) Received: from mail-lj1-f169.google.com (mail-lj1-f169.google.com [209.85.208.169]) (authenticated) by conssluserg-02.nifty.com with ESMTP id 237NvVAu018069; Fri, 8 Apr 2022 08:57:32 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com 237NvVAu018069 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1649375853; bh=2xt6T2poF3Jb2rXQqjGy0tw2bFfsjebPGhPiXY6x8nE=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=UboELrmsxNtueHP8l9jwLEViCMAzg6Vu8OcdetvULTADwduoRUsU99oGjR8z6aXzr Lu7bRdm80qjBtOxULJmgpbpj2GGCXREw1Weet4CiiDAjA3CBdlhBM+CHgkXUxAwaxL AFywXuSZnKrE8VrUfE+M0dlhFIadNT2PhRUmePckm/WZj9cunkx5rsFI5kZpSaIdSn FargPXkmzARPR1TaZ2rsE2SbJCbVz28LMx2rDAX3X0jHp80Lm+NkWej95YRb7sA6sW 7veSKbNIxt9eh9sSytqLRFIPoGS83SbwJYGXx/DfIkwfrUUXgWafKLbfpvCEPNZ8H3 d+VksF3eEgy5w== X-Nifty-SrcIP: [209.85.208.169] Received: by mail-lj1-f169.google.com with SMTP id bn33so9455020ljb.6; Thu, 07 Apr 2022 16:57:32 -0700 (PDT) X-Gm-Message-State: AOAM532beJT4hhSQNyGQjk/gl6GTbAQPLchU6fG92VRh0IvaOaeohDxA YZQoUfDpHcWiZYGbQFl3N2u6bnkz2xfhKCwwnbM= X-Received: by 2002:a2e:bf27:0:b0:246:7ed6:33b0 with SMTP id c39-20020a2ebf27000000b002467ed633b0mr10441919ljr.167.1649375850933; Thu, 07 Apr 2022 16:57:30 -0700 (PDT) MIME-Version: 1.0 References: <20220406153023.500847-1-masahiroy@kernel.org> <20220406153023.500847-5-masahiroy@kernel.org> In-Reply-To: From: Masahiro Yamada Date: Fri, 8 Apr 2022 08:56:39 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/7] kbuild: split the second line of *.mod into *.usyms To: Nick Desaulniers Cc: Linux Kbuild mailing list , Linux Kernel Mailing List , Nicolas Schier , Alexander Lobakin , Michal Marek , Rasmus Villemoes , Sami Tolvanen Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 8, 2022 at 2:47 AM Nick Desaulniers wrote: > > On Wed, Apr 6, 2022 at 8:31 AM Masahiro Yamada wrote: > > > > The *.mod files have two lines; the first line lists the member objects > > of the module, and the second line, if CONFIG_TRIM_UNUSED_KSYMS=y, lists > > the undefined symbols. > > Enabling EXPERT and TRIM_UNUSED_KSYMS, I didn't find any .mod files > containing a second line that wasn't empty. Is there an example that > has such symbol list that I can use to verify? Modules are usually symbol consumers in order to be useful. (and some of them are symbol providers as well). So, it is rare to see an empty unresolved symbol list. But, it is theoretically possible to create such a module. This is sample code. obj-m += foo.o ----------------(foo.c begin)---------------- #include MODULE_LICENSE("GPL"); ----------------(foo.c end)---------------- > -- > Thanks, > ~Nick Desaulniers -- Best Regards Masahiro Yamada