Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7273892rwb; Mon, 12 Dec 2022 12:24:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf48uc9I085OyDDfknzvfAsYegJZzLPadgPeEZvYHbNglSp6rYSzlr4zNfcyn3P5N5Zq+Tns X-Received: by 2002:a62:1c97:0:b0:575:e02d:68b0 with SMTP id c145-20020a621c97000000b00575e02d68b0mr19273336pfc.9.1670876666073; Mon, 12 Dec 2022 12:24:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670876666; cv=none; d=google.com; s=arc-20160816; b=HV1sHxXpMHe7khW7+lYcPI2HkGtwXv96PvZYk3gHOxVeE18n3Z+x8irDuRS5Owkbl+ wxhdNoHw1UUBZG2sRgvquj19Ri3i2eiE5BHR852MxnJgPxZN5NhOrJ1Omop5MiFZZuPk W1wxviLQgzn+78zTqMoA9wdh7FDMCCKXY/tqe6LCmzF4HWVNi/q7SAxcQnycDB2HcpEP R9brb6i9DOSu25GnFufszaH7B7GIUNyNMJvrRO977ad9FJnYAQP3WJmqNBUBiX9VbOuH 3in5eiXRB32QTh2JaT8HWJjfL3pAOEC90/wmFtkVMJbNxLxYn7o32S7Fa5VMg6MEQzUl Lacw== 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=aPK79tB/1me3EbuApGrUPE56J1u84v6/ie8oZnW1nMo=; b=WhmkUtpdwfVmWuwkZ7PoScAaO/OIpIilj51aNLOEghZ0XA3UyPtcdA2Uk1RyP1matK KYKlS1Cm2Jt3zhxWdo71/91f/quZoAhRg1ShldAFN8ihdrHZUZ+3iiFQYW8s5upOLL/K sMgkt7APa0sRZDdP2CN/UT9BJjRo8Vg4G3HQcDLiUxEBR4iQ51wLvmXvyQVBRLUpOi+W UkaQmA13A/+lbWTH/yQUgfzH2KFW5/9E7gGFafzRiMpIJ4JIxrJZey6+/XBRJ5tsF1jQ zlOmfE6lwsVg3wLbgXUPSzKxcHvnno61OFd8Czzdm39Um0jE5T/7M3Cohn+H21ZCereD SDjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=k6QurxhH; 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 u17-20020a627911000000b0056ea2b142b6si9763438pfc.373.2022.12.12.12.24.07; Mon, 12 Dec 2022 12:24:26 -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=k6QurxhH; 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 S233524AbiLLUMe (ORCPT + 75 others); Mon, 12 Dec 2022 15:12:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233481AbiLLUMK (ORCPT ); Mon, 12 Dec 2022 15:12:10 -0500 Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10D3A17A8A; Mon, 12 Dec 2022 12:12:10 -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=aPK79tB/1me3EbuApGrUPE56J1u84v6/ie8oZnW1nMo=; b=k6QurxhHunpwyxRecRIIR8PX/+ 3Gq1lRCXB63j1+GjoPclXJGdjAM3KFRfjjvTholfNVyMv4sHeZ4l7Ez9EVWPo6tWvt1CHxcOVO5m+ uFz3vFLkaxZclF3yNB6J4bVTcU5RnAPSF1cdJfi/u/KrCqkV9k6XUdrzFJ0JMKpULh3o0+K8I5J+w pDxGC4pamwNCBvDQIB0uCKSneKheBSJSTnjZDykYCE4rsSSEtH3V1jqJWLX5nAeslPs5NstqJPjRl NqK3eG7Gd3LD7zlKON3/N6la1VaXyIc5zXs7/2hhC3K6Z8Pi8VBwnM2eSdjMwnIuhL0/S+9g7GhVk QOPb+GFw==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p4p9d-0056uz-9S; Mon, 12 Dec 2022 20:12:01 +0000 Date: Mon, 12 Dec 2022 12:12:01 -0800 From: Luis Chamberlain To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor , Nick Desaulniers , Nicolas Schier , Tom Rix , linux-modules@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH 1/2] kbuild: change module.order to list *.o instead of *.ko Message-ID: References: <20221211130408.2800314-1-masahiroy@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221211130408.2800314-1-masahiroy@kernel.org> 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 Sun, Dec 11, 2022 at 10:04:07PM +0900, 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. > > Instead of converting the suffixes back-and-forth, store the .o paths > in modules.order, and replace it with .ko in 'make modules_install'. > > This avoids the unneeded sed command. > > Signed-off-by: Masahiro Yamada Reviewed-by: Luis Chamberlain Luis