Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5847454rwb; Mon, 14 Nov 2022 10:15:56 -0800 (PST) X-Google-Smtp-Source: AA0mqf78or+HWgVJgX3tyuO/NrU8v1ueS014Pdii1olN7VQi5CQZaqmGbqNSJ9T/pzcn93RzMZ0C X-Received: by 2002:a17:906:2e97:b0:7ad:79c0:547a with SMTP id o23-20020a1709062e9700b007ad79c0547amr11278734eji.41.1668449755882; Mon, 14 Nov 2022 10:15:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668449755; cv=none; d=google.com; s=arc-20160816; b=oOtWYbTMQA1Bae4xi+UouQdhovgGNWoGaS/ArMV9z5o16Ffha47HS4DJU/7FkwHwEk Sgb4GszhiEUlLbgwZU29XZ48+IjX6Pme/MdKKV6pfZw10RUt2EJC7luIt5Rnqz6FVY/c x1SPHdz2lloUa1IMDw5ShdGAHCFcNXdcMr39OJfKuX6y6zbeLPMB1eHsJ5W9U4aozEHX p4qljEubhDiJ+ax7lyZMobeo17sIRaC/yMHrc92c1s3OMU3NcT3IIJeODf+SFUyOUnPc wGR26pmgvQb1VA6BpddxEHMaTXNhYXAMBOAa/tK1f8lRXU471y3VVMxXOTIjFbUBCzp9 Mvag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=FKc3qcfec+gHgboywrJ09NkfRlIxD8LBocwjtxNj3MI=; b=vVauhR1uX24ZUgK6dOOnUnCuBWI/SwY5pwSWtisdTT88wVKp0k7GNHmoPSKLnJd3uy WIrM+JiYsU+wdVFSIquh6QOzMXtildU1RNhl57Z3VnICgQzpTXWoPoaLM+obao3OHF02 4JeyrkO9k0eJOT9BQbd3VWYrtpn5+mi/X0z5kti2k+TQg/SEvfwX35zaf95Zs7vVjrth OCd24HAIM0BgJZXgQ2efQqLrDUiaL9w201Yq1cLZOUtEgmfIGUgL+sVwyezkcamR+8Ai /nYo9xQtoHvBQB+UUQw2nI1zTNEL0I4Uy5eKTtaeNDdQJh/9l27qgsRC5XclHBgB+ace 3S8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=BFK0rqzK; 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 qo11-20020a170907212b00b0078e063fc78csi7435432ejb.576.2022.11.14.10.15.33; Mon, 14 Nov 2022 10:15:55 -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=@nifty.com header.s=dec2015msa header.b=BFK0rqzK; 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 S237823AbiKNR6m (ORCPT + 89 others); Mon, 14 Nov 2022 12:58:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236681AbiKNR6T (ORCPT ); Mon, 14 Nov 2022 12:58:19 -0500 Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFA3326546 for ; Mon, 14 Nov 2022 09:58:18 -0800 (PST) Received: from mail-oa1-f44.google.com (mail-oa1-f44.google.com [209.85.160.44]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 2AEHvrm4025921 for ; Tue, 15 Nov 2022 02:57:54 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 2AEHvrm4025921 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1668448674; bh=FKc3qcfec+gHgboywrJ09NkfRlIxD8LBocwjtxNj3MI=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=BFK0rqzKhnpaGMVMVqwXYJ7mxovyV+PnOXS9BW9alLw8HkOLpbX4fR4b8LrOJGQ5x jBx1d/tCyytWKKnVaYBHYhQ+79vIe90KopUz04btzWmbmWKKtAqDp0Xzh2xgmeG2ql nNQqiu1Fj6BUivFzYZt1RKS88U3OgPc0P4587fjWeA3sjRvitatvjf8TqS3A2nLqb2 5N6UjIt7Fw3EhTzzic9qUKEqtIFnivRs1Dhiiamrff9BhLskzJaOa5EWk3AXqbvlIo qEIs/c3VW5EUrHQ750m7HP/OBjvoi/DzS8SAF+ubqy8p3SmGavnjGcTmHtdRpaBHi0 pIdgr+aOoO53A== X-Nifty-SrcIP: [209.85.160.44] Received: by mail-oa1-f44.google.com with SMTP id 586e51a60fabf-13ae8117023so13318941fac.9 for ; Mon, 14 Nov 2022 09:57:54 -0800 (PST) X-Gm-Message-State: ANoB5plfW9ZhfECeN2HSKv+z39o7EdjvUBU4PkP6Twwb68sKjyIDAwVx exddF2jWSp6HqRrtSs4L1bdMMH16B08Sr/nHuFA= X-Received: by 2002:a05:6870:4b4a:b0:13b:5d72:d2c6 with SMTP id ls10-20020a0568704b4a00b0013b5d72d2c6mr7243528oab.287.1668448672780; Mon, 14 Nov 2022 09:57:52 -0800 (PST) MIME-Version: 1.0 References: <20221114114344.18650-1-jirislaby@kernel.org> <20221114114344.18650-3-jirislaby@kernel.org> In-Reply-To: <20221114114344.18650-3-jirislaby@kernel.org> From: Masahiro Yamada Date: Tue, 15 Nov 2022 02:57:16 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 02/46] kbuild: pass jobserver to cmd_ld_vmlinux.o To: "Jiri Slaby (SUSE)" Cc: linux-kernel@vger.kernel.org, Jiri Slaby , Sedat Dilek , Michal Marek , Nick Desaulniers , Martin Liska Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL autolearn=no 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 Mon, Nov 14, 2022 at 8:44 PM Jiri Slaby (SUSE) wrote: > > From: Jiri Slaby > > Until the link-vmlinux.sh split (cf. the commit below), the linker was > run with jobserver set in MAKEFLAGS. After the split, the command in > Makefile.vmlinux_o is not prefixed by "+" anymore, so this information > is lost. > > Restore it as linkers working in parallel (namely gcc LTO) make a use of > it. Actually, they complain, if jobserver is not set: > lto-wrapper: warning: jobserver is not available: '--jobserver-auth=' is not present in 'MAKEFLAGS' > > Fixes: 5d45950dfbb1 (kbuild: move vmlinux.o link to scripts/Makefile.vmlinux_o) This Fixes is wrong since GCC LTO is not in upstream code. > Cc: Sedat Dilek > Cc: Masahiro Yamada > Cc: Michal Marek > Cc: Nick Desaulniers > Cc: Martin Liska > Signed-off-by: Jiri Slaby > --- > scripts/Makefile.vmlinux_o | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/scripts/Makefile.vmlinux_o b/scripts/Makefile.vmlinux_o > index 0edfdb40364b..1c86895cfcf8 100644 > --- a/scripts/Makefile.vmlinux_o > +++ b/scripts/Makefile.vmlinux_o > @@ -58,7 +58,7 @@ define rule_ld_vmlinux.o > endef > > vmlinux.o: $(initcalls-lds) vmlinux.a $(KBUILD_VMLINUX_LIBS) FORCE > - $(call if_changed_rule,ld_vmlinux.o) > + +$(call if_changed_rule,ld_vmlinux.o) > > targets += vmlinux.o > > -- > 2.38.1 > -- Best Regards Masahiro Yamada