From patchwork Mon Nov 14 11:43:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Slaby X-Patchwork-Id: 19737 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2097698wru; Mon, 14 Nov 2022 03:47:55 -0800 (PST) X-Google-Smtp-Source: AA0mqf6giyHxWwudEy2Ui+qjB9AQ+FHMC4jlaII3Fkp0I1XQybE63BV3KFTsvhUVuLWhXinN6HYl X-Received: by 2002:a17:906:a2d4:b0:7ac:db70:2f90 with SMTP id by20-20020a170906a2d400b007acdb702f90mr9773200ejb.297.1668426475106; Mon, 14 Nov 2022 03:47:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668426475; cv=none; d=google.com; s=arc-20160816; b=wUgK//s86kgtnRL6MTWIa3cw7+mmcMw2Q0sq0VpJtZ1ppa0G5hEMbRSf8TPJcSRqKk pvklqH7KGGcVHZ9FnP7Y6nNq7AcAW4ugzhDcqZ1trjYiMXHqx1Sg/2+XWsnQ8ZJWgQ4D BLiqiIxRxZZVVzV4zmaysOvkDptiOIgoXVr6cHUpP+XUZXYL+RP3czDn6ElIcXBQ9M6l jZNJFTCw72nuMV0H+Z3CtLvl3gGdPYO1bYG1MQernOzEZneLYrR2aEpPflEu3cfetTld KG9p8ahA1nR6SXjaTRoPQvZ0RvODYmCOhoT0VcK5c/lCBdxUCsy8GKI66R9qTCZ0yEQO 5Xsw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h1-20020a170906584100b007ae61d89b4bsi6526855ejs.283.2022.11.14.03.47.31; Mon, 14 Nov 2022 03:47: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=@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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749471959813974450?= X-GMAIL-MSGID: =?utf-8?q?1749471959813974450?= 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