Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1324656iog; Thu, 16 Jun 2022 04:07:03 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v3oh3qB2DuByOCAabiBUP05vEiBgB89eW3MsRdHyfEeVBckqHC3PMLycxXrN/OUhIbq/Gy X-Received: by 2002:a05:6a00:1385:b0:50a:9768:9eca with SMTP id t5-20020a056a00138500b0050a97689ecamr4136097pfg.43.1655377623014; Thu, 16 Jun 2022 04:07:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655377623; cv=none; d=google.com; s=arc-20160816; b=EWktJ41AiZ0uv6G7QkLiUdPtysqZTtOEXOiFVV27OgpafO/GAP8MlJW8KA0ra+sweG PN4+wy4dH7lsRfz41irMfiLBIFRskbaZQUm3Eno/9uosDgYDsNOFTuJq1QUW/tPnPXAk YvXkaUz/Gh8tkJcod/UfNoZ9p5dMjXuJWNwjRV3cU2ZjbKP4VYGwNwpQRbgvox6I/Wp2 3zZb2Tlc4hiRTFk0dPZdwkIPqw5pSAoryac/6pzz08mYkxQzW62/Tjfl1PF6w5AEd6tz tsGqomcC0V1LlWWhTwIRYLWVomh87xcM176lCaQcWtIPxQHsQvcOvyBKibhHwAXgy6gN gU9Q== 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:dkim-signature; bh=ULxOKBAy4WHeF0/dTA7hH9Jh74dB9KHeZr7XeBl4+Pg=; b=q5LVA2vShHEcG+/QmfV1d89wXwkNK4ldKixFl49G0He46n/B7QqgViwT038RJ6KR5/ RekwKdIiMYhfVKYi74huUK+nf9NZlWsGJcIM3AlybNqkryrZnR2wB4R7Cdkyhgo+Phqx XlHJa06q2DcoAfKYme3332NhoGevDjmLVBUn9ZSB6HEZpCHz6RMueFKj6kCKwDn6X8k0 T9Eu1I2VWflhYa9CFtpKDBylZCL4Eo8/2J9oiDKYgVE3X0XJNN0WvpCATPDAoOQ7+L3L S5vnhTY+krDsWxHopsK1L9MeohIFmztHpBbQBNsx8/xKL/2lWiM88eGTWlKu0XzwlviY qgpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=UaY0n8dl; dkim=neutral (no key) header.i=@suse.cz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f2-20020a17090ab94200b001e31028a53csi4958582pjw.185.2022.06.16.04.06.49; Thu, 16 Jun 2022 04:07:03 -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=@suse.cz header.s=susede2_rsa header.b=UaY0n8dl; dkim=neutral (no key) header.i=@suse.cz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231479AbiFPKps (ORCPT + 99 others); Thu, 16 Jun 2022 06:45:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33102 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229748AbiFPKpo (ORCPT ); Thu, 16 Jun 2022 06:45:44 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 99EB159B96; Thu, 16 Jun 2022 03:45:43 -0700 (PDT) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 53D2521D3B; Thu, 16 Jun 2022 10:45:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1655376342; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ULxOKBAy4WHeF0/dTA7hH9Jh74dB9KHeZr7XeBl4+Pg=; b=UaY0n8dlgNVMGty9qm6s7IV+Zsc9NVtF92E09/vx16wHyeMVIpXH77aYA8E0PwqlLAZHcr fo3YDlysAISklnV5F2pyUFTcS4gEMyVWUAjlMIoh+jREIVk1N9xEDL0PSx5jAmOp+Ttfwa etZYR2rFGh92MzShOCCaCkLutcn7/hw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1655376342; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=ULxOKBAy4WHeF0/dTA7hH9Jh74dB9KHeZr7XeBl4+Pg=; b=R/xbSvanl/cJoXhSie+0fuWqOo6ITx4Wy0vAIDZibTXCQG3IoJ9xlhQwPgNdaxA8M3QZAl DOp2jRMLR0sJxyAg== Received: from localhost.localdomain (unknown [10.100.208.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by relay2.suse.de (Postfix) with ESMTPS id 0501B2C141; Thu, 16 Jun 2022 10:45:41 +0000 (UTC) From: Jiri Slaby To: masahiroy@kernel.org Cc: linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Sedat Dilek , Michal Marek , Nick Desaulniers Subject: [PATCH] kbuild: pass jobserver to cmd_ld_vmlinux.o Date: Thu, 16 Jun 2022 12:45:41 +0200 Message-Id: <20220616104541.16289-1-jslaby@suse.cz> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 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 --- 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