Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1063784rdf; Wed, 22 Nov 2023 04:55:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCtDiaVOcjAmgSEfquIGgmIIye/KNAIYgZHgHJWvMD2SJkprGwuolC0K93cIXsNz8cqp6h X-Received: by 2002:a17:90a:183:b0:271:7cd6:165d with SMTP id 3-20020a17090a018300b002717cd6165dmr2163907pjc.26.1700657703163; Wed, 22 Nov 2023 04:55:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700657703; cv=none; d=google.com; s=arc-20160816; b=UKpFULf9w5dbpWdeflaA8ZjjdtzCilvgnUDVduCxE+87oin9l35wEac1s3gPTqJxfX dhHf5rsioGlFGh4XTd95pEbrJ4M99Bfxo0ggMPivIQ4hj1ihY9yxofxmmDbzipdS6+yC ssP0B5wlZoM0zf8fXoIyIHpx6SP5vfYnUUDAbi27H5WRxuzk1LX7y70NmIY3YI9uZLNL lNqfFWsPZlAt7XnQQdqZ8bPs2orLvjw1yAdgzdUM/w8xiihSjdMkk+fxPve82MajZLNZ pZHNNmwZh2OERw7ITwvQEqdMIKImt90wHNv5EkvMgOgxQtwq725dW647VFTfIRiK1UPV MZFA== 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:references:in-reply-to:subject:cc:to:from :dkim-signature; bh=wuIXzags+RBlDsjUweIx70S2oQNg60ItGMTYwpyF8/M=; fh=ZZ3LptFak8RpxQ7KsK9Ymj3yN1oyYnf/ZoWN95k39P4=; b=P+UgZtQbENGaVYYgTBpmzIG5Yw0Ja/rWnMMHpjLT4dyRbwd1Pm5XtuCozeP4G3Yk8Z p5aHbmlrs1VOo2L65ih4XBWWYUveXuqCHJcXxWrSQhCKNWWC/DQPdr5pAIMYAa6UAMjN bteI6I1utj8ahtUk2HgBQsKvI6Pul+cOAOxkA+J6VVms48zcf3+xeGV98EdB1gmKzfj1 P8jqtFOeLhXx1XkoXR+jxKNjFQh9F2xRwrHC+HZYAb5Xd2eY55OFHgP3CPxMuDjwCDYt 3EcEapJJ9IpJfsOdqBWoI/OWjzlq9RKeyaZZ4IPEUZb8Ie0wx8CrZJZPk4f51skn6kXv 8IvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=XYRAWaNy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id pf7-20020a17090b1d8700b00280464bcd94si1459088pjb.130.2023.11.22.04.55.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 04:55:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@ellerman.id.au header.s=201909 header.b=XYRAWaNy; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8ED5381E14F8; Wed, 22 Nov 2023 04:55:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343901AbjKVMy6 (ORCPT + 99 others); Wed, 22 Nov 2023 07:54:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343953AbjKVMyz (ORCPT ); Wed, 22 Nov 2023 07:54:55 -0500 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58CE318D for ; Wed, 22 Nov 2023 04:54:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ellerman.id.au; s=201909; t=1700657686; bh=wuIXzags+RBlDsjUweIx70S2oQNg60ItGMTYwpyF8/M=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=XYRAWaNyY9Csde2AbWpecLjArnLsrn0AlVA79QjjWeODirREpWX314cVo3QIskZpN m51hJ686exSXsNpE9nVqalYXaeQBoAeGC2xByBScxxgOlln9d/b7gFhnRSRnlV47W0 dEn7nCwXtKgxtNgyXWT/SWibxwhRvXSvf/0/OIL7vZH3/weJl0f+5S/jFLnaTGoNgJ SwdL1M1rDCZ/NN63LGyaiVfYsIl5Z2GyN6U3yuJiKFg7OUuVQeoHymsns06ydgG8Nt XdHE5k9dS7i02GUJxltb7eBdQeqe5XWjWbvaK+XqZUbgzkRlRvKqZQGvDcq/zC3Fw2 kx54DpXN6r3xQ== Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4Sb1RT54M1z4xWV; Wed, 22 Nov 2023 23:54:45 +1100 (AEDT) From: Michael Ellerman To: Masahiro Yamada , "Aneesh Kumar K.V" Cc: Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, Nathan Chancellor , Tom Rix , llvm@lists.linux.dev, Nick Desaulniers , linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: add crtsavres.o to always-y instead of extra-y In-Reply-To: References: <20231120232332.4100288-1-masahiroy@kernel.org> <87bkbnsa5r.fsf@kernel.org> Date: Wed, 22 Nov 2023 23:54:45 +1100 Message-ID: <87a5r6j6cq.fsf@mail.lhotse> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 22 Nov 2023 04:55:01 -0800 (PST) Masahiro Yamada writes: > On Tue, Nov 21, 2023 at 6:55=E2=80=AFPM Aneesh Kumar K.V > wrote: >> >> "Nicholas Piggin" writes: >> >> > On Tue Nov 21, 2023 at 9:23 AM AEST, Masahiro Yamada wrote: >> >> 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=3Dpowerpc LLVM=3D1 KBUILD_MODPOST_WARN=3D1 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 fi= le 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 >> >> >> > >> > Thanks. Is this the correct Fixes tag? >> > >> > Fixes: d0e628cd817f ("powerpc/64: Do not link crtsavres.o in vmlinux") >> > >> >> I am finding a different commit ID: >> >> commit baa25b571a168aff5a13bfdc973f1229e2b12b63 >> Author: Nicholas Piggin >> Date: Fri May 12 01:56:49 2017 +1000 >> >> powerpc/64: Do not link crtsavres.o in vmlinux >> >> The 64-bit linker creates save/restore functions on demand with final >> links, so vmlinux does not require crtsavres.o. > > Yeah, I think the correct tag is: > > Fixes: baa25b571a16 ("powerpc/64: Do not link crtsavres.o in vmlinux") Yep, I used that when applying. cheers