Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5875151rwb; Mon, 14 Nov 2022 10:39:23 -0800 (PST) X-Google-Smtp-Source: AA0mqf78JNBvD3QxfRE7iHtucgB2poPB+7ZzdIIQEeeIjnpa1XZomIZ2MGwmtIhGK6rHNY7Wy1EM X-Received: by 2002:a17:906:e204:b0:780:93d2:8510 with SMTP id gf4-20020a170906e20400b0078093d28510mr11018617ejb.457.1668451159164; Mon, 14 Nov 2022 10:39:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668451159; cv=none; d=google.com; s=arc-20160816; b=BtihG+HBL3r7jvXT0+u6ega7ERYFf82xu0KxkcOvJ3+hfvkKB5TxoII63xmt0dNrJ4 1d48zjmWrkfWQZR1qLmrqGHzru3YSOJqJ8YEddqjOxAv0am2KjXal0dB/013LTDwNe6p 7e5LItNTQzYGhwE9pvq9bCuQp7BJQX9Xy8QdaCSiPOc4K95QtQGFogYV8BERc0XqIlEU hgwoDqlcR9XhFZb/bc/ElvHfld+JqfJbMkgH+d9GOABQHfdB0DzZJrp9djblquywOaJk y2SFlveCHonMhpKQOAIeUHWApNse4XWilupQu44o+rlTHppICoIOCbXvy931Lz3ckr5V x8OQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature:dkim-filter; bh=54Y4AOtUYBegyKYHvt2LWMfUtwi2mulpZJLBNOl6jOM=; b=nZibVyNjeOFKc5iTUGgCYTBou7g0SPb0K16oNENq3zfLkTItbDfAQVfGQQoBwaWKtf XLXyDDj+yr97JHyAuUJbSxMrpW5XGJLqSYf6FNs4PwhC0vSXos8eeDJ14emP5amJPJDd n4Ch2HAU+dzmkw4i+s728WQEmytdcnNhwoWu+uICLbToAknT0A2UML01wdKR/1Q2/EdO yDEcikYoKaELoJ2oVt2i/uhn5aYtdc3RDzMx/1sk5Rczyk8WGk3Hn2GKwKzHkjrVYEjA iPKDR3/oIwzkTbOTvnObsCjHqBWjjwCvRvFF2YfvlPZ/ISjyKPY2IJmLxJy8n59Sx1gZ vr3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=yFf79cL5; 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 h4-20020aa7c604000000b004615bea1d62si7549280edq.472.2022.11.14.10.38.57; Mon, 14 Nov 2022 10:39:19 -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=yFf79cL5; 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 S238250AbiKNSEk (ORCPT + 88 others); Mon, 14 Nov 2022 13:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238413AbiKNSEM (ORCPT ); Mon, 14 Nov 2022 13:04:12 -0500 Received: from conssluserg-05.nifty.com (conssluserg-05.nifty.com [210.131.2.90]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D452327CDC for ; Mon, 14 Nov 2022 10:03:22 -0800 (PST) Received: from mail-oo1-f45.google.com (mail-oo1-f45.google.com [209.85.161.45]) (authenticated) by conssluserg-05.nifty.com with ESMTP id 2AEI31Le029190 for ; Tue, 15 Nov 2022 03:03:01 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com 2AEI31Le029190 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1668448981; bh=54Y4AOtUYBegyKYHvt2LWMfUtwi2mulpZJLBNOl6jOM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=yFf79cL5R5weudFuwU9rbhyTS51hLkhT/WIde3qYjiheSJ9I6RYZpSdHEKf8YNRYD DYwB2N8LyNJMnh8ObM+f5xEsyILMJeMMhibsqi3fPXfKjzakLzH96cX0H4KnYqOyLC rG26KNCRrCtneqhTEiN319Y0VuLtFngd/HHN3PrUEUNfCZQSX39+AT/rWNRUdn3sPK Xdg0Hj9rUEdQrYWJuC5ffNhJ8odGDp+p8dPD2bHFnfb09QWwQnGyKXFWQgbmxtq1du zZzJ+zGc5VNCkpHg63cjDLCJgjuTM6TlbDVfCqS15fKRobZzDqgQRV7/DqPGAk9VDT Z3FEtI4BD8W6w== X-Nifty-SrcIP: [209.85.161.45] Received: by mail-oo1-f45.google.com with SMTP id r76-20020a4a374f000000b004988a70de2eso1695625oor.2 for ; Mon, 14 Nov 2022 10:03:01 -0800 (PST) X-Gm-Message-State: ANoB5pk/bS8vBHm3JS+TakHLhTeEJobBPa6R1opbnbkTUbNGxvD71CtK ltbbRcyZNGmwEF+Nn1bZmUGRRBdVOL7Wih+rUkY= X-Received: by 2002:a4a:5704:0:b0:49f:449a:5f6c with SMTP id u4-20020a4a5704000000b0049f449a5f6cmr5722156ooa.93.1668448980435; Mon, 14 Nov 2022 10:03:00 -0800 (PST) MIME-Version: 1.0 References: <20221114114344.18650-1-jirislaby@kernel.org> <20221114114344.18650-4-jirislaby@kernel.org> In-Reply-To: <20221114114344.18650-4-jirislaby@kernel.org> From: Masahiro Yamada Date: Tue, 15 Nov 2022 03:02:24 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 03/46] kbuild: lto: preserve MAKEFLAGS for module linking To: "Jiri Slaby (SUSE)" Cc: linux-kernel@vger.kernel.org, Martin Liska , Sedat Dilek , Michal Marek , Nick Desaulniers , Jiri Slaby Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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) wr= ote: > > From: Martin Liska > > Prefix cc_o_c and ld_multi_m commands in makefile in order to preserve > access to jobserver. This is needed for gcc LTO at least (enabled in > later patches in this series). Note that both commands can invoke the > linker (ld_single_m in the former case). > > Fixes this warning: > lto-wrapper: warning: jobserver is not available: =E2=80=98--jobserver-au= th=3D=E2=80=99 is not present in =E2=80=98MAKEFLAGS=E2=80=99 > > Cc: Sedat Dilek > Cc: Masahiro Yamada > Cc: Michal Marek > Cc: Nick Desaulniers > Fixes: 5d45950dfbb1 (kbuild: move vmlinux.o link to scripts/Makefile.vmli= nux_o) Same as 02. Also, 5d45950dfbb1 did not touch scripts/Makefile.build at all. Please stop adding random, wrong Fixes. Make already compiles many files in parallel. It does not make sense to request a jobserver for a single C file compilation. Is there any way to turn off this annoyance? > Signed-off-by: Martin Liska > Signed-off-by: Jiri Slaby > --- > scripts/Makefile.build | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/scripts/Makefile.build b/scripts/Makefile.build > index 41f3602fc8de..564a20ce2667 100644 > --- a/scripts/Makefile.build > +++ b/scripts/Makefile.build > @@ -247,7 +247,7 @@ endef > > # Built-in and composite module parts > $(obj)/%.o: $(src)/%.c $(recordmcount_source) FORCE > - $(call if_changed_rule,cc_o_c) > + +$(call if_changed_rule,cc_o_c) > $(call cmd,force_checksrc) > > # To make this rule robust against "Argument list too long" error, > @@ -457,7 +457,7 @@ endef > $(multi-obj-m): objtool-enabled :=3D $(delay-objtool) > $(multi-obj-m): part-of-module :=3D y > $(multi-obj-m): %.o: %.mod FORCE > - $(call if_changed_rule,ld_multi_m) > + +$(call if_changed_rule,ld_multi_m) > $(call multi_depend, $(multi-obj-m), .o, -objs -y -m) > > # Add intermediate targets: > -- > 2.38.1 > --=20 Best Regards Masahiro Yamada