Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8717411rwl; Sat, 31 Dec 2022 10:28:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXvI25wkEhszolpgJZo4x2ZTsY4aGbv6O3nb562BBngxvqtJvRfrg0ZuG9hP4lU7e7iAfzGe X-Received: by 2002:a50:d659:0:b0:463:aeaf:338f with SMTP id c25-20020a50d659000000b00463aeaf338fmr33119605edj.32.1672511301592; Sat, 31 Dec 2022 10:28:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672511301; cv=none; d=google.com; s=arc-20160816; b=ioT8e483fv8gm5epXza/0fH6n0yWDEf8TzaT2r9OqeFVnopVbWCAfRGFEx96vNebTh Qb6HJmIZN5wrg+oDw7Br8X03d7pq1724pWHH4gC3nZaEF5A88OIS7tSg9cfvGBHhm2at bzQhl2XCdx3hIgxA02sRw0+J6DWapOJZmBams68VGDHiN55UhAxiEp/kSx1twvhpsWCG EkBxzCP80F/+CpbVVynbsJA19cstohi+iGAJ7Dfg1xP9qbt8jmXP/AyXV14VaFeiqPBu k3JBI1RAb+QVa7+YRxH/1qOVF3hgpFfmn47HO6iGvgGbbyJA6x2JNdKhVKDyUtUmj65C hOfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=yw3ODpUAXzT+qSqhtlVX0Rvmvb63PbMMLU7F8NRwzfs=; b=lUDBxJaVONm643Er5G0Pzo4jayJ8V/880RFTrp4KTyd2wglURDEgeqwcbqWVqJRGip diCjVJHlUa5kM9QH1xknEkkmwq0x7KfvjxRCJzBlBxByzDa4A+LqhkEMdEypHbT4WBKF Jv5a/5Bwno03aUB3V0ClkSaQQULpTKq3PkqRCguvBN+oA15mSqYW2IRftGZ3yk1vnGgY XFy5D27U5PyNF7TgH4G2i00z5uRKODzjS3N5U7chv97cZt2s/VcyQ7pfQP679K1Bby8H ah2Ja6iyK6/kpkyx9bWiBi5HJQEz7oZ/EXnhB+fIkxTY/FIi6Hv+eGBhCRzg7Vry+YHD EBGA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id eb10-20020a0564020d0a00b0046b62140386si21521956edb.576.2022.12.31.10.28.07; Sat, 31 Dec 2022 10:28:21 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229715AbiLaRse (ORCPT + 63 others); Sat, 31 Dec 2022 12:48:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbiLaRsc (ORCPT ); Sat, 31 Dec 2022 12:48:32 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AD79E644D for ; Sat, 31 Dec 2022 09:48:31 -0800 (PST) Received: from gallifrey.ext.pengutronix.de ([2001:67c:670:201:5054:ff:fe8d:eefb] helo=bjornoya.blackshift.org) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pBfxk-0003TW-EM; Sat, 31 Dec 2022 18:48:04 +0100 Received: from pengutronix.de (unknown [IPv6:2a01:4f8:1c1c:29e9:22:41ff:fe00:1400]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: mkl-all@blackshift.org) by smtp.blackshift.org (Postfix) with ESMTPSA id 12B9A14AB65; Sat, 31 Dec 2022 17:47:46 +0000 (UTC) Date: Sat, 31 Dec 2022 18:47:45 +0100 From: Marc Kleine-Budde To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Luis Chamberlain , Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Tom Rix , linux-modules@vger.kernel.org, llvm@lists.linux.dev, kernel@pengutronix.de Subject: Re: [PATCH 1/2] kbuild: change module.order to list *.o instead of *.ko Message-ID: <20221231174745.jc3qlmwydujswrne@pengutronix.de> References: <20221211130408.2800314-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="u65cng565x4ymoau" Content-Disposition: inline In-Reply-To: <20221211130408.2800314-1-masahiroy@kernel.org> X-SA-Exim-Connect-IP: 2001:67c:670:201:5054:ff:fe8d:eefb X-SA-Exim-Mail-From: mkl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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 --u65cng565x4ymoau Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 11.12.2022 22:04:07, Masahiro Yamada wrote: > scripts/Makefile.build replaces the suffix .o with .ko, then > scripts/Makefile.modpost calls the sed command to change .ko back > to the original .o suffix. >=20 > Instead of converting the suffixes back-and-forth, store the .o paths > in modules.order, and replace it with .ko in 'make modules_install'. >=20 > This avoids the unneeded sed command. This breaks direct compilation of kernel modules (on current Linus's master): | $ make drivers/net/can/dev/can-dev.ko | [...] | CC [M] drivers/net/can/dev/skb.o | CC [M] drivers/net/can/dev/calc_bittiming.o | CC [M] drivers/net/can/dev/bittiming.o | CC [M] drivers/net/can/dev/dev.o | CC [M] drivers/net/can/dev/length.o | CC [M] drivers/net/can/dev/netlink.o | LD [M] drivers/net/can/dev/can-dev.o | make[5]: 'drivers/net/can/dev/can-dev.mod' is up to date. | LDS scripts/module.lds | MODPOST Module.symvers | drivers/net/can/dev/can-dev.ko: No such file or directory | make[1]: *** [.../linux/scripts/Makefile.modpost:129: Module.symvers] Err= or 1 | make: *** [.../linux/Makefile:1982: single_modules] Error 2 According to "make help" it should be possible: | dir/file.ko - Build module including final link I've bisected it to: | first bad commit: [f65a486821cfd363833079b2a7b0769250ee21c9] kbuild: chan= ge module.order to list *.o instead of *.ko regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Embedded Linux | https://www.pengutronix.de | Vertretung West/Dortmund | Phone: +49-231-2826-924 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | --u65cng565x4ymoau Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEBsvAIBsPu6mG7thcrX5LkNig010FAmOwdbwACgkQrX5LkNig 011z7gf+OghAr5P75iK5yC0Sf+UGA5HUhb3UYTln5I/nHb9bVvzQSDfwS6+xpA/g SpPKOPu08eMeKXU6J3jYzQUs8vp6v3vz8/D6HZY7ahruFMRB1/wERjsHOpdflXaM 228L6rWmd5/9cTv24ex/r0BV7YR6OfQUd/sp3/A5FRjdDVBOcerjKDSFnIn0rYZw /w77Uav6Veq6k520xWq8d6aRi3TLLrqtnIo+zwQfWHA939P7hDtGYGtBG/zbhlIC r301YxE7Tt2ERUUMtZp+ziSuFbtp4/41ajvxHcn3b0VFNa8zRjEjvnQXu+/TFzYq fEvuZXngXlaezkX6BRvYvnaVKnbLtg== =gccH -----END PGP SIGNATURE----- --u65cng565x4ymoau--