Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp36431rdf; Mon, 20 Nov 2023 15:24:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IGEt9t6wOvd8XgBgktOaSJClyAXyBk527eZH1/Q27VFOtKLfCM2kYhRkdkVch6pPfVWHzO8 X-Received: by 2002:a05:6a21:190:b0:185:9de4:fd31 with SMTP id le16-20020a056a21019000b001859de4fd31mr1430497pzb.18.1700522682756; Mon, 20 Nov 2023 15:24:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700522682; cv=none; d=google.com; s=arc-20160816; b=shxbVsha4TS9sGO9gwm5yL/yZjFS2IER0I350/LmVB8z9jIa/3qbnQkmK+lFlkWS2p 45cmb01nIWU/C7UawawIjHYduvKMrW+XrImkY0TpX+n31r2QKR6BWW9B1EZKtjsKJz7E TV+jqnBvjNuUT/+rZhvL4rLJqFA73Une+ffrZPLTbq/zvKEv7ByM6AmnCFkJSguKJeQZ J3Fmp0lz4Mf/3hC8oY0uSxxCwn8g5jcTINtXMgrGxnI1vrzH9I6D54+PM5nMO/CSc9pE O/auNIwznzQMy5bBT9LVQmkZH0K+94CrMPs4EQy5Dlv3p4On47X9odIC2ZrmqdlE6iG+ dwyA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=yo3uFp47oTk4OROXXkYWaQkds7ZBDfXfjBSBdxK8EMA=; fh=kX28LnxzqQb0xX1Xvxb3Idm77XKPV4yUEVuY41u085k=; b=fUghLTBTBNHdo+//Wsoxzz5gDTJQkDm6OOEK1wDHDNOPTZLckk3r2aENX1I784W7rk CKKv4fHKH6ZZ0geLixAJ2sQNICIo5Rzg2tN+xhXjWXsGon7sdQ2axe/7QqURhPcpR8qP sxPYQV8f3CmNKTosR7IlIK0SrMUY56wHOi9t2hP+y4RDCzlgloTJ4zM/ePeuwpQ4FMpd TgsrtPrz2FZW/Bk2f+S4MpJzYhp5iNBRdino4m7Caa5+2kAwkS14aKUKVMqou1Yv2dIc PeIeqBBBMyXTrC9lIH7T130v+o5ai0PRJUVUF90mgtTC1z/BP9sOUMVe9twj/WTZMJXy XQ8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H8jniV24; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 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 fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u127-20020a627985000000b006c4d3cd9132si9001082pfc.0.2023.11.20.15.24.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 15:24:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H8jniV24; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id E78D68063D41; Mon, 20 Nov 2023 15:24:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229830AbjKTXYK (ORCPT + 99 others); Mon, 20 Nov 2023 18:24:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbjKTXYI (ORCPT ); Mon, 20 Nov 2023 18:24:08 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 13A3FC1 for ; Mon, 20 Nov 2023 15:24:05 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id F25B3C433C8; Mon, 20 Nov 2023 23:24:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700522644; bh=67KEhLI0mEivJdbrkeCl+vFBBtgFo5YzYmUACDBON68=; h=From:To:Cc:Subject:Date:From; b=H8jniV24tZu68db9VGGm2q1zQTL4/mK90DWnFoovUtdjLOvX2sQaRAW9tq1BGVaOj 7qX3z2eK3d6lvNNIKtJbLJ2Iw6euVJSNcBNlnv+gaQPgDbbDNXtCt6jA+iyW4IO6VF 7m73afQT36H+vXmRCSH6nm2IjaNzTcC3ZhCVDkOaspknxf90tcCYnday6+8h5BfdBt wAl5D26oA/ehLsMMoHU5dV8CgCujZme+ru+sGtfkmjw6neS289tR8vbajgFjncYRxV JeGody4kjKgtnTgAbfwsz//Tmoq8zfFqKBbk7I1ak4r57jtbn+mag/3++tZF5bz1dT qAH0aq2JpD5mw== From: Masahiro Yamada To: Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org Cc: Masahiro Yamada , Nathan Chancellor , Nick Desaulniers , Tom Rix , linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: [PATCH] powerpc: add crtsavres.o to always-y instead of extra-y Date: Tue, 21 Nov 2023 08:23:32 +0900 Message-Id: <20231120232332.4100288-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 15:24:40 -0800 (PST) crtsavres.o is linked to modules. However, as explained in commit d0e628cd817f ("kbuild: doc: clarify the difference between extra-y and always-y"), 'make modules' does not build extra-y. For example, the following command fails: $ make ARCH=powerpc LLVM=1 KBUILD_MODPOST_WARN=1 mrproper ps3_defconfig modules [snip] LD [M] arch/powerpc/platforms/cell/spufs/spufs.ko ld.lld: error: cannot open arch/powerpc/lib/crtsavres.o: No such file or directory make[3]: *** [scripts/Makefile.modfinal:56: arch/powerpc/platforms/cell/spufs/spufs.ko] Error 1 make[2]: *** [Makefile:1844: modules] Error 2 make[1]: *** [/home/masahiro/workspace/linux-kbuild/Makefile:350: __build_one_by_one] Error 2 make: *** [Makefile:234: __sub-make] Error 2 Signed-off-by: Masahiro Yamada --- arch/powerpc/lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/lib/Makefile b/arch/powerpc/lib/Makefile index 51ad0397c17a..6eac63e79a89 100644 --- a/arch/powerpc/lib/Makefile +++ b/arch/powerpc/lib/Makefile @@ -45,7 +45,7 @@ obj-$(CONFIG_FUNCTION_ERROR_INJECTION) += error-inject.o # so it is only needed for modules, and only for older linkers which # do not support --save-restore-funcs ifndef CONFIG_LD_IS_BFD -extra-$(CONFIG_PPC64) += crtsavres.o +always-$(CONFIG_PPC64) += crtsavres.o endif obj-$(CONFIG_PPC_BOOK3S_64) += copyuser_power7.o copypage_power7.o \ -- 2.40.1