Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1497718iog; Thu, 16 Jun 2022 07:35:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uMvguc+qt0TpOWUycD2MceS5DrxJzbv9RA2b3PnBig7on5WRmHGo4smAwqe0yxpEpq3sQG X-Received: by 2002:a17:906:dc8f:b0:70e:5e7a:cc59 with SMTP id cs15-20020a170906dc8f00b0070e5e7acc59mr4842328ejc.423.1655390104025; Thu, 16 Jun 2022 07:35:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655390104; cv=none; d=google.com; s=arc-20160816; b=jxA/Ygv9MIvkDx9sbkI716OkWVsBXgv6sfFuIeJr1z8HccDuuRUx/Um8CHjiz6nzf5 BbqGoIax+1wxRtDX25zEbLwz0p7YAhG8bAVaZFCb0uE0UM8V8ZLq49rcRM/9xOPJA4PM zfQXuTsim1v/q1juDB7HN/bCCu4B0T0etJQbdVwkZjltWpsPC3FMlX1fqfPM53txIeUM XBHGCQQmGXxWcDuAgc0qdNB2jyT5V9fI2UAqDyZ0/E0Oig0KUU8jQFYioMIuxBNZPVMD FUFVUIzNCxH5D28lFOEW/HXSWNsgZbB/kMDYzKj1IlRDPUia329ilPXTELLaIKZwjsVJ ldeQ== 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:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=Bdf9wkC1ypzciNLF7AiRIhEs9K16sQ5cIuAUnPzMikk=; b=yQywv0Dg554zp+EgnIGcZoHn4WJl9gAOvQdJfz/R1jNHD3Jes+W/BgojUES4QSLZiZ SHv4HgatPwySH5DrBzbRBQt/2tffVPOz8ZAd4mNhfPAMM6QfsRnBEO5vcaBTAKxoOB9h tTZ5FVAxBkirm+zvSjY9RS0M5Jj8TTjpl4eUVJlPRmorLUiBrXLy2H6VaAmilxmRT+mB WjmIuYs2qP3+MW5bjs3mioZd0J99gukyHsceYTUurOYW3uRWoZP3V2DJzYpiFgJRVR7O kC04m1ED0ANYCIv6FwBnbdwrwITe8PJ6xc33ygS2AgForWx0q6+bv35h+I6FQmC30sZp 4U7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZWodJQhm; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e2-20020a170906748200b00718e483c586si1988563ejl.201.2022.06.16.07.34.37; Thu, 16 Jun 2022 07:35:04 -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=@gmail.com header.s=20210112 header.b=ZWodJQhm; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377548AbiFPOKd (ORCPT + 99 others); Thu, 16 Jun 2022 10:10:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1377001AbiFPOKb (ORCPT ); Thu, 16 Jun 2022 10:10:31 -0400 Received: from mail-il1-x12a.google.com (mail-il1-x12a.google.com [IPv6:2607:f8b0:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3182848E7A; Thu, 16 Jun 2022 07:10:30 -0700 (PDT) Received: by mail-il1-x12a.google.com with SMTP id y17so982553ilj.11; Thu, 16 Jun 2022 07:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=Bdf9wkC1ypzciNLF7AiRIhEs9K16sQ5cIuAUnPzMikk=; b=ZWodJQhmXLXE1RedHEMpYdSASnmddcGHxa5T59oKWc51cGr9E5AFR654iHtEegPMRR t4L6ssnlsCkpQkPTBtWkQ6VKXX3uP86mvrZduYgi4VBb/UGzLpOlv+aTSwrE2gPKqhN0 IpLF0vDp4DOlCVhaeuCoyYzLboQOxh97nghIvoPWHAzhnKQ+bowapO2quJf5gUXKnTS+ rI2JDokfDD+LFD3qxlCK6XeITkOqqmhQ8I2UpDnGD8IH8yFBARrc5l9yWAMs2dRkKe3i XiYebs2Gw+i2kzsVkjji+oTC2EjfkwrnmrIa6iojWe+364ugu13wK1R7ydQyiNKhcG6+ lRQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=Bdf9wkC1ypzciNLF7AiRIhEs9K16sQ5cIuAUnPzMikk=; b=VJvuSP1LoVqJAQp0E9RITTsWNwNb1IdIDKXPi4a7rq8aOPKxppwQLyL13a7ibMFl2d qVP0LKapTqmegBfVguW5LS9iYvppBNmyYccVpTIJlLYxouJ0M5tCV+YzNt8mrbg7Frbd c3wzbiEyKjLAUaA3QRj08x65u9wWmS4ywbq6aKlGWr9m5Y+T9nQOIgAOLCcgxwdW+sts pi4EvAJ4v4Ggq/YqXiPg3JTaW7F40d8yw9sOsTE3i08/LvqcEXvCUAIXsuoeoAZMzlkT lBW/NZDzscdFKojHV4wuYCInAhsZcnaaNWDSQVmgFMAmvDLUdis+JswNFHP0Y4kuqnGr 8mAg== X-Gm-Message-State: AJIora9Kc2wfRWuMiBj2zp9rcEAX67f066ZVVaWFZbsz0aIEejjTW5tV bMOBlTU85YlKosoLViWZVGBChGwLdIyHAZzeSrY= X-Received: by 2002:a92:280a:0:b0:2d7:7cdc:8426 with SMTP id l10-20020a92280a000000b002d77cdc8426mr2835712ilf.245.1655388629564; Thu, 16 Jun 2022 07:10:29 -0700 (PDT) MIME-Version: 1.0 References: <20220616104541.16289-1-jslaby@suse.cz> In-Reply-To: <20220616104541.16289-1-jslaby@suse.cz> Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Thu, 16 Jun 2022 16:09:53 +0200 Message-ID: Subject: Re: [PATCH] kbuild: pass jobserver to cmd_ld_vmlinux.o To: Jiri Slaby Cc: masahiroy@kernel.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Marek , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 On Thu, Jun 16, 2022 at 12:45 PM Jiri Slaby wrote: > > 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 (esp. the LTO ones) make a use > of it. > > Cc: Sedat Dilek > Cc: Masahiro Yamada > Cc: Michal Marek > Cc: Nick Desaulniers > Fixes: 5d45950dfbb1 (kbuild: move vmlinux.o link to scripts/Makefile.vmlinux_o) > Signed-off-by: Jiri Slaby Nice catch. ( I have seen some slowdown in my build-time. Will test and report. ) Reviewed-by: Sedat Dilek -Sedat- > --- > 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 3c97a1564947..d032f625b576 100644 > --- a/scripts/Makefile.vmlinux_o > +++ b/scripts/Makefile.vmlinux_o > @@ -65,7 +65,7 @@ define rule_ld_vmlinux.o > endef > > vmlinux.o: $(initcalls-lds) $(KBUILD_VMLINUX_OBJS) $(KBUILD_VMLINUX_LIBS) FORCE > - $(call if_changed_rule,ld_vmlinux.o) > + +$(call if_changed_rule,ld_vmlinux.o) > > targets += vmlinux.o > > -- > 2.36.1 >