Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7554065rwb; Tue, 15 Nov 2022 14:13:27 -0800 (PST) X-Google-Smtp-Source: AA0mqf4hkXnLdSXiLCLFzk2BdaHV2wEmWLrXUQNqvjlnPkzTh7/9x0HXL4SjHmsul0NWWLeaOe9p X-Received: by 2002:a17:90a:7e8b:b0:213:df24:ed80 with SMTP id j11-20020a17090a7e8b00b00213df24ed80mr416009pjl.186.1668550407590; Tue, 15 Nov 2022 14:13:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668550407; cv=none; d=google.com; s=arc-20160816; b=q6tk/rL6655g5NEsq1RU+KnGEIe5C0HEfDcNVEMC+zA6QR/Q1XFEKHcoPIKa2nylYu iFvZAYfw2vClEwwh8VueznrbU2dm9E1rzVktF03pnVplLgrledYn0zFuXYuMnJV6Oupe QFPWINpTIr+7DC1JydXqFdMJEbHsUOsBkKOy2rjf//JlOr0PXOSfuA/gbGbPV7HMSA+0 PKzFnNB+Qie3NQtjUneGtlhDpiNALcVOSKc0VlmczPSHCRYq6t3Ur7zaVWN1TUVK8B9b 6Lt4BHyn/r8PeWCSE+cYwnLbJ1kcj4swny/wzKBTpOzW807baQq4noG8IsP2nHKIjS3J 88qQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=nyKgzABuL/ly1ySWJPooscj+ldW3eJWZmk6Lzgs1mvE=; b=Yjrwc9CZOfL2t0PveuICRNuyKxW+9ytQqFEgCs7aGL+ESp8HNTCbr85LIHR8dQHnTs MobbK0rhryZBW1EDVgDBqX00nih4TJBCn/0vDAbbS8aFtDEQojG/DvQ7jbB1L4zqtmhn CisrL7h7mwwYbCNKQArjNl2NIJP1z5e6M987jfn+k9Y9WqNmvxGHWB230Te4MeGqtr5i N+EXlBA3Har7qJ1OYVcHTfQSFR/g717ZB/xKMDyRS/zw4odA0+YiUjGnsiLhkwysW4vk HS3R1pfidVevi4DkRzS7Rn4EcmB20muC0vfjhFx96LfHEOOV0IAegvgvwIhxK26dFeR2 8rJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="hqycI/WO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a170902ec8700b001874910a2c6si15085724plg.286.2022.11.15.14.13.01; Tue, 15 Nov 2022 14:13:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b="hqycI/WO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S229693AbiKOVVy (ORCPT + 90 others); Tue, 15 Nov 2022 16:21:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238716AbiKOVVi (ORCPT ); Tue, 15 Nov 2022 16:21:38 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D387205D8; Tue, 15 Nov 2022 13:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=nyKgzABuL/ly1ySWJPooscj+ldW3eJWZmk6Lzgs1mvE=; b=hqycI/WOAi9Lm6ARDyTBomx+/p tDXAsPRy7wE+jawPq2mMiT2xKb3H0ZgdwivCPfIQNZQfBzrgrSBTntsUsKgMrKIqlQ2RUAre20cfp NrvPU+kP0geGkqNHC2ntPKAxf2dbEtNoKUCEPwFO20nb23QyOFMUnWIxZvym8pfbT1tUDzXJebpW/ wNEsZLv8HwqIva87ZQwSDn5PhEA/eTO3IYAlEQqkozyJsOS7sRzJZxrc0TOM33rw7frJ+LsHmDjzy uAWrpUBo5zBv/uXwtcIg47rsmY+btLvrLGw1ZkRQS1tg+++sDjKfsWH0qV2qOb/MekhdbcOU1hAxH a5fA5XDA==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1ov3Mu-00F2AJ-9l; Tue, 15 Nov 2022 21:21:20 +0000 Date: Tue, 15 Nov 2022 13:21:20 -0800 From: Luis Chamberlain To: Nick Alcock Cc: Masahiro Yamada , linux-modules@vger.kernel.org, linux-kernel@vger.kernel.org, arnd@arndb.de, akpm@linux-foundation.org, eugene.loh@oracle.com, kris.van.hees@oracle.com, Steven Rostedt Subject: Re: [PATCH v9 2/8] kbuild: add modules_thick.builtin Message-ID: References: <20221109134132.9052-1-nick.alcock@oracle.com> <20221109134132.9052-3-nick.alcock@oracle.com> <87h6z5wqlk.fsf@esperi.org.uk> <87iljhv321.fsf@esperi.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87iljhv321.fsf@esperi.org.uk> Sender: Luis Chamberlain X-Spam-Status: No, score=-4.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 Mon, Nov 14, 2022 at 05:49:58PM +0000, Nick Alcock wrote: > On 11 Nov 2022, Luis Chamberlain outgrape: > > > On Fri, Nov 11, 2022 at 01:47:03PM +0000, Nick Alcock wrote: > >> +arch/x86/crypto/libblake2s-x86_64.o: arch/x86/crypto/blake2s-core.o arch/x86/crypto/blake2s-glue.o > >> > >> But... > >> > >> obj-$(CONFIG_CRYPTO_BLAKE2S_X86) += libblake2s-x86_64.o > >> libblake2s-x86_64-y := blake2s-core.o blake2s-glue.o > >> > >> config CRYPTO_BLAKE2S_X86 > >> bool "Hash functions: BLAKE2s (SSSE3/AVX-512)" > >> > >> This cannot be built as a module. > > > > mcgrof@fulton ~/linux (git::modules-next)$ git grep MODULE_LICENSE arch/x86/crypto/blake2s-* > > arch/x86/crypto/blake2s-glue.c:MODULE_LICENSE("GPL v2"); > > > > Try removing that. > > OK, that works! > > So if we're using the presence of MODULE_LICENSE to indicate that > something is potentially modular, I guess this means I need to do a > sweep through the kernel and find everywhere that cites a MODULE_LICENSE > and cannot be built as a module before this will say things are modules > that really are. Yes, make allyesconfig builds + a verifier for tristate would be nice. scripts/kconfig/streamline_config.pl has an iterator over kconfig files and also objects which you might find useful. At build time such a thing could nag about issues like the above. Luis