Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp826890rdf; Tue, 21 Nov 2023 19:10:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IHix6FqMtTL8zvU4TMSrYetg0ssSMthbwyrL7K7q/iP2TRRkP6oWgtrg2K5HdkFgEIFDY1r X-Received: by 2002:a17:902:d511:b0:1cf:667a:1821 with SMTP id b17-20020a170902d51100b001cf667a1821mr944105plg.61.1700622607922; Tue, 21 Nov 2023 19:10:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700622607; cv=none; d=google.com; s=arc-20160816; b=sTHZ6DX7augFeFe+qaWY7hrU92cTfn6OGZwbvDxJhtJiqH20X53N6a4Eb4N4sewsdJ wM3XKcquTIvffeEMtNAZ/JBzmUngsPxK8gEL/ZOgBH0gTuHzeCs0WlYazp8nuqJkGR/Y dOQoYJl7RBBaTq48g28fmJoY1XtcaTrkfckZ6gjF7gzoNbDvqTJscCDNSDf47yDjYcYY E3vMe70I7sbQHp+2EMYQN+pZJsFBmejwh4kb690CNQuc3u6YaW4HCspa7Tc8eBFN4TLB eHvhThq+WVnNKdpWo3WNHD01dEBKwythKWEGvhYpvYR9P28qT//pNw1MlW024cTiBp5N DiuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=cJpBDRVRxC3y6RKmWhvM04Wtfq0yrv8lx/rzCuWcPZA=; fh=bn1zTSgHss6s+jnUsdpPVtXf9hpreL/Gl1kLujlSYUE=; b=APjEfEaIikDZ0Blw41FU4JoL7x5/iIUc4V5DizI9wBiNBjxgJ6zpjU6R2Cff90+6yw Mh/ltBYmDL+oGX7NCrZJw8TYHm2r9L9bGLY0rh07JdP2mzlHQJceubWln+BsIvAu3/B1 0EsT1LCiF4OeWoO4zth6NR+lGyGHRaeFayRflQ12I6vKiu8MdtLRYZ8f9y7O0konKCGW RyMsFnzjTwPjKzRHMCVisQgEQr7guWiEzVk8sBKeJWDY5o6qH3N9YcLwJZfMSUZAqjdj SLDy0oZUFQWkrMR0nVMHk5pKkNoRq7K9y1lw/J75iRHFOjUZVth1aoxVlQ3ohUMUfkoD a3Sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LzatzLY3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id b11-20020a170902d50b00b001cf67e08915si4521614plg.562.2023.11.21.19.10.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 19:10:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LzatzLY3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (Postfix) with ESMTP id 29A318029D04; Tue, 21 Nov 2023 19:10:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343530AbjKVDJu (ORCPT + 99 others); Tue, 21 Nov 2023 22:09:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjKVDJs (ORCPT ); Tue, 21 Nov 2023 22:09:48 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BA5912C for ; Tue, 21 Nov 2023 19:09:45 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id ED9AEC433C9 for ; Wed, 22 Nov 2023 03:09:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700622585; bh=qdLHRBoKEw4gFMfVFRwpwvnicE8hhhtpNM9aNH2gRU8=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=LzatzLY3wlxZBHabO1rjpjtfU3YxyoAswVHzrdW5Ns4NECFXf6w551ldjkuXp4iOJ xa38LiMC6Xjq+Td4ZN35aSjZWwY1tXzjmrVeLNLZFdq3YkjFp1cuzRyK5qZIXEHBUC upZzb96Cqv6nYzenxdTkaJqNFTszJFRiLu/kBg7pUMMKEiajN8UNikf58VENrwT6Y/ p4+VwMv194wWxbMBzH3AWs3pO+XNA8YFDG7cSZ4954sxDjz5+e3xcXie3dkuqUKXI+ 6MVkLPRkkz+dcQX7Zo6XlUqo24IyvqZxaGXXshXp8wvEt6S8Yysu5wI158E0LZUq1g qZG98CkzKU3Tw== Received: by mail-oa1-f52.google.com with SMTP id 586e51a60fabf-1f066fc2a2aso2977974fac.0 for ; Tue, 21 Nov 2023 19:09:44 -0800 (PST) X-Gm-Message-State: AOJu0Yx+bzXkGeeSldHq0kTSTpl8GI2LCBl7IrRwtj8thbVGVMVW6bo9 D9xUnxeAw7OW2DIX06/cVWtukhoLyy9WzEN6FH0= X-Received: by 2002:a05:6870:8e0b:b0:1f9:5ae9:bb6e with SMTP id lw11-20020a0568708e0b00b001f95ae9bb6emr1378749oab.32.1700622584238; Tue, 21 Nov 2023 19:09:44 -0800 (PST) MIME-Version: 1.0 References: <20231120232332.4100288-1-masahiroy@kernel.org> <87bkbnsa5r.fsf@kernel.org> In-Reply-To: <87bkbnsa5r.fsf@kernel.org> From: Masahiro Yamada Date: Wed, 22 Nov 2023 12:09:07 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] powerpc: add crtsavres.o to always-y instead of extra-y To: "Aneesh Kumar K.V" Cc: Nicholas Piggin , Michael Ellerman , Christophe Leroy , linuxppc-dev@lists.ozlabs.org, Nathan Chancellor , Tom Rix , llvm@lists.linux.dev, Nick Desaulniers , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 groat.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 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 19:10:05 -0800 (PST) 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 fil= e or directory > >> make[3]: *** [scripts/Makefile.modfinal:56: arch/powerpc/platforms/c= ell/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. > > > -aneesh Yeah, I think the correct tag is: Fixes: baa25b571a16 ("powerpc/64: Do not link crtsavres.o in vmlinux") --=20 Best Regards Masahiro Yamada