Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5517139rwb; Mon, 14 Nov 2022 05:57:48 -0800 (PST) X-Google-Smtp-Source: AA0mqf7gsa2wRjJqY2yYs048ePMUTfpi/7lIxboK/ZXQQ8vj+WqKmet8qG6+ix61bQjv69kxKdzn X-Received: by 2002:a17:90b:3a81:b0:20a:8d65:978 with SMTP id om1-20020a17090b3a8100b0020a8d650978mr13314338pjb.94.1668434268166; Mon, 14 Nov 2022 05:57:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668434268; cv=none; d=google.com; s=arc-20160816; b=pYizOgi1DzXZ+8Zw2MQEZjzZHnRGHx0qD2LMu9+URCuTYF8gTnjHEl73yBHwK/4ys3 y9ehCD8SPZC6c/js6h0rzuioHyNxawiKxUd7cVtNAkfSuIppeRqP/JZSYTS4q6aBITOE 13k5lm5lesn70Px5OJZGr6AeNq6OUKFCmPksVfqtPB25273w6gKv/XPuTatkST3IZDox uGWEz49tQ/5321HjDJp55nyuN/pQOG+IA3H9gsMVsE58Pc/utJFFq5LSsl9Gc+dIqc7a xtwjodYGQNZXOmY0CVX7G1tVMHSGiXynMa2a1xVJW3hqilcIrmrhD+f6WwQNJbvTQ1RR s7Jw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Ncp8sAKGG21enbcw3f5zdgqCv0BDEWlrT0sjYjf1gNM=; b=J6ycsFDl7lVOyrLuSICxVa1JL6b5XnD3pV3OUisqtgKNc3YquuzN4jDGtNGYGalWXw pgmCy7QgpSY6cCq+QxsBV8658fM51Nw7fFqNNRTV9ZNYFNmrICMqt3qFr0DHAZ8FL0T5 PORkQzj+uBrC7J70Otx/mlqMsx+VZCgjAXygv+lM6MuKdSw2EYDUpays5CdIMrFJVnz3 TTI0a+wN1RSnbpFOw5lpZX7Z7wOOvDPvuGg/snRjhCuevx0rES3wMBZMEycKNSKNPl9x Yo0empKHHMxO062jMvWQ8Q0A6QTz2LZ5TIYaotqByCGahtatxh1VXek//CeHykjqyKlv ziVg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PXOb2fLu; 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 i2-20020a631302000000b00473c36e3b85si9200800pgl.678.2022.11.14.05.57.36; Mon, 14 Nov 2022 05:57:48 -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=@kernel.org header.s=k20201202 header.b=PXOb2fLu; 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 S236477AbiKNLoH (ORCPT + 88 others); Mon, 14 Nov 2022 06:44:07 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40624 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236453AbiKNLoF (ORCPT ); Mon, 14 Nov 2022 06:44:05 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BD60615713 for ; Mon, 14 Nov 2022 03:44:04 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 656C6B80E72 for ; Mon, 14 Nov 2022 11:44:03 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6ABCFC433C1; Mon, 14 Nov 2022 11:44:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668426242; bh=t+kVodx/FyufZNDsyZR/TwnYyg/ybb2UIRRgGwwP+eU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PXOb2fLuZw/2J8Qd9Ved8cY7hYxzzQuae6NEGFIpy9dPRy+cozgBPKXVlAB2uLWOy dXU04R/FNA0em0A0rfrKr4uL80Gcm8yAYgJUlUHpjUNFICoq+Sam/mPP/qN31VQ+ie 6yt+twlhe/DAmiD1WfWogfoTOcFMyKv2iZw5UoI8821X7FE6tsFPpUjDDqGDhRNFzm LjhsqrZEHZPdBviitzbEz5nw0VltGJ6e8HRBWmdl/J4c7ADc7wwtOzk5WFVTOPFC33 vBq2yv1AQkbHnqZrx6ES0Pc2Z542HkVxcds5k64rFEXIPkvduVn49AGCtvTkL4L++u d2RYjtNihgHRw== From: "Jiri Slaby (SUSE)" To: linux-kernel@vger.kernel.org Cc: Jiri Slaby , Sedat Dilek , Masahiro Yamada , Michal Marek , Nick Desaulniers , Martin Liska Subject: [PATCH 02/46] kbuild: pass jobserver to cmd_ld_vmlinux.o Date: Mon, 14 Nov 2022 12:43:00 +0100 Message-Id: <20221114114344.18650-3-jirislaby@kernel.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221114114344.18650-1-jirislaby@kernel.org> References: <20221114114344.18650-1-jirislaby@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 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) 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