Received: by 2002:a05:6358:5282:b0:b5:90e7:25cb with SMTP id g2csp3325334rwa; Tue, 23 Aug 2022 02:53:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR5GPyZr5u4HI6S9jKNtc4xNApHfjNi1lC7Gu6mTvrrwDrhsvdBznorOTXD/DxV69/wSTViL X-Received: by 2002:a05:6a00:9a5:b0:536:29e:c91d with SMTP id u37-20020a056a0009a500b00536029ec91dmr20467441pfg.22.1661248396800; Tue, 23 Aug 2022 02:53:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661248396; cv=none; d=google.com; s=arc-20160816; b=GvEfjspo/XoKw5va5DCLZI6gbwKb0zfzflNMSo7JawCFGkgVH+DO+tsiX+YX2/AkkJ cquu5rw+IhvTHTXBr0tx/VkUgdiPENCaj6GorC3cJE6KaocCu8yYh7aTmP96XQgehjk8 KshuKw3oBV/b4HFV5YOGq7bcHpET7/RFsMQdLIzsEc7vBBCCBf99X06dxoWXlFGBOuyh zn2RzpU0R0RKN/aKREptlW3vJWqUKPNbvzVV2Xyglu+Q3pvWaYyZJkNwrjbvXdITzZpM UpnKEtLy9MtkRVgW4y+7UpEEuy/k8puMA8V/ZlTr7p5uzs2hY8zJjkfLIZm957E08GXD RWCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ahHOagjvjEcZuHu8Q1cHaKRDBgkphTv/4D8MRig28Kk=; b=xJP+fC6Vx6dlR6H/yDb919JEvck6Cqx489pMnXlDoWFu4jXLiaSmRcQMbe4HpkXISa OsKQMwFtj35Y4vxRG7aDv3xhxnLIFqR7bsavrz7re9uRoVMGNCYf4vMH0o0Qiw/bL8GC Mjc2T81tFCA8ZNMShI3UHJRrMnh3Csyd68P+5JrK8WdzvGuMuLotbQDvTKDBmIOJUBb0 ZBxIiNJP+N1eETtG+YBGfOdNkeuAPMnPQRDcKeDNBAMTbHxEgVDA/u35DKLDnQp9e9kn 5OtSUTjekr4F9FA/J+PGPF+Ynr8v779nmII0GoEpa0TLeLnZlHMUnreFUDKY0pA7Tynn ZsPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=QcZidmms; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c25-20020aa78e19000000b0052dfe17ce46si14259968pfr.285.2022.08.23.02.53.06; Tue, 23 Aug 2022 02:53:16 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=QcZidmms; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1349709AbiHWJ3K (ORCPT + 99 others); Tue, 23 Aug 2022 05:29:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350817AbiHWJ0X (ORCPT ); Tue, 23 Aug 2022 05:26:23 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF26C760DB; Tue, 23 Aug 2022 01:36:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 0600CB81C53; Tue, 23 Aug 2022 08:30:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5ACCEC433D6; Tue, 23 Aug 2022 08:30:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1661243413; bh=gpZlTkMgtQZhjdaTnXjvpPHUJqnBmdmQfvXUs6qO6OE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QcZidmmsrMychWtAdN86heOZaWGnMraMLhG/FZxDE7W4cF65y3vL0QC79+jw7w4Kp pLwn0XQYJokSbpVrrP/wRwGtrDPtsJDFcBah/5azFcudTCtE5e6logtR6C51I/VODG WgZOZSZzMnTeL4SapwhdfyzGp+DafSdrFvgeklyY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Masahiro Yamada Subject: [PATCH 5.19 239/365] kbuild: fix the modules order between drivers and libs Date: Tue, 23 Aug 2022 10:02:20 +0200 Message-Id: <20220823080128.240505129@linuxfoundation.org> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20220823080118.128342613@linuxfoundation.org> References: <20220823080118.128342613@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 From: Masahiro Yamada commit 113147510b48e764e624e3d0e6707a1e48bc05a9 upstream. Commit b2c885549122 ("kbuild: update modules.order only when contained modules are updated") accidentally changed the modules order. Prior to that commit, the modules order was determined based on vmlinux-dirs, which lists core-y/m, drivers-y/m, libs-y/m, in this order. Now, subdir-modorder lists them in a different order: core-y/m, libs-y/m, drivers-y/m. Presumably, there was no practical issue because the modules in drivers and libs are orthogonal, but there is no reason to have this distortion. Get back to the original order. Fixes: b2c885549122 ("kbuild: update modules.order only when contained modules are updated") Signed-off-by: Masahiro Yamada Signed-off-by: Greg Kroah-Hartman --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/Makefile +++ b/Makefile @@ -1112,13 +1112,11 @@ vmlinux-alldirs := $(sort $(vmlinux-dirs $(patsubst %/,%,$(filter %/, $(core-) \ $(drivers-) $(libs-)))) -subdir-modorder := $(addsuffix modules.order,$(filter %/, \ - $(core-y) $(core-m) $(libs-y) $(libs-m) \ - $(drivers-y) $(drivers-m))) - build-dirs := $(vmlinux-dirs) clean-dirs := $(vmlinux-alldirs) +subdir-modorder := $(addsuffix /modules.order, $(build-dirs)) + # Externally visible symbols (used by link-vmlinux.sh) KBUILD_VMLINUX_OBJS := $(head-y) $(patsubst %/,%/built-in.a, $(core-y)) KBUILD_VMLINUX_OBJS += $(addsuffix built-in.a, $(filter %/, $(libs-y)))