Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7006930rwp; Tue, 18 Jul 2023 08:44:07 -0700 (PDT) X-Google-Smtp-Source: APBJJlEn6igpzPCA8juYFmzq0bvTi0kBFXUUTvq345LTIw65EI5Wwxf75NpXpR0gtAhZpro84bf0 X-Received: by 2002:a17:90a:fb83:b0:263:f3ad:64af with SMTP id cp3-20020a17090afb8300b00263f3ad64afmr11934933pjb.45.1689695047629; Tue, 18 Jul 2023 08:44:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689695047; cv=none; d=google.com; s=arc-20160816; b=IYk3SbdSI9pYnZqbqtxJ8CPbAAE83QZuvlu2Og+/3h6UXS39cVXQ366m2i1hO228Eh y2n2dKV8jmFwR/zoWczKzdeJVssveQY8rx0y6L26g/GbKtxxqlhxBjfaS957ziXLfwL2 Z1yXZ5c5aWF8UO0yZKX7iN/RKaYF87zbmf2IkV1Wsk/RCkhcX/mlYiS8Tj3M2aSGtThQ 7Bb9qy2mN5NsGyqfgY/NG+y0TtbCpBvjyjCoYmGJkqUthgQq6VJ0R8zIC01NFsXVNWq6 Y5C9uYR+Ao1IDJP/sX8Ykesj9bSz9uPtnN9MaZTLhn/fwD0s1qEF38vMfLH2isd71Otj CuPw== 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; bh=NJs2tM4Xub2tBv1W/8uplLXN56iVXbQbGNFz7uneyoU=; fh=iA43LSIHZ6+qXcEjS106xfXFyR9RcSJbF3wzLDe4H4Q=; b=qDjPzK474h9/hd+YIY70lqkJXQT4ZXrfPzpO3tptvc2QqAtqvFstFSl/pTJqXFL0bw 5HuhIoKnw07mIhOpVzSTHaiJPfvNCh2qNku+QQhi+WDivbllcTfW2leFg8UPzUFVC6nQ Wj3Xs6yw/srOoiF34C0987PkW47Bt8TLNryj7UHcYCaex/W5Pu1nTjt/rnK8rG0WWY6r P8r39lfanvnxuY2VHyNefhXfoOhOUjbC4ff8kGjw0aYpecI2jg2GDZRCfw0LFk6sIdda QT1zI71FGyl5bSLXCMl7hX+1IPSw/fdsQRMZ5puYJaZZez/nKZBE5hBHY8nD/7s2TkgO Wcdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="lTGTF0/d"; 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 t10-20020a17090ad14a00b00262cc36ea3esi1784812pjw.76.2023.07.18.08.43.56; Tue, 18 Jul 2023 08:44:07 -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=@kernel.org header.s=k20201202 header.b="lTGTF0/d"; 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 S233100AbjGROyp (ORCPT + 99 others); Tue, 18 Jul 2023 10:54:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230346AbjGROyn (ORCPT ); Tue, 18 Jul 2023 10:54:43 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6AE4D115; Tue, 18 Jul 2023 07:54:42 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id F1D9861615; Tue, 18 Jul 2023 14:54:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 52C1BC433C7; Tue, 18 Jul 2023 14:54:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689692081; bh=9OaB5dqsAbuBmRO7nPr865+hWKTbzSRKJYIF02YafGU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=lTGTF0/dnJXKBhdJ66cxFn5JJeAe3IA5xkOCD6kBzS1taG3uyca7Vz9agtkgUWZ6M QRxfd7V4Jiekj2irkYIvVdbspjsYa7NjH37P39kX8r7lRZOsAIjJPd39RTsXr7LDVF OYPzg8OKkXAyzMhoRb/1cp/MpsDGQNRFU/eD2uYD7K6YwtumV5VTpY7oU5z3g2fcbJ iF5+s5ZgQY4e3niwRRvwk8hw2GKppdNREeML2YihU2ju3nbOG6zx/9cactDiL/CV2/ gjYNmztRjhmlfBed52q101+sQ5zsrPcQ9qgLT+7H0beyWwvIXLBQbZ/UUJaedj8/Pl RRnq1uHS0n2cA== Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-51e619bcbf9so8058490a12.3; Tue, 18 Jul 2023 07:54:41 -0700 (PDT) X-Gm-Message-State: ABy/qLYzT0TSEsC2ix3id5Wi5htVdRXIsMSWuW0/EJ+0eevqTV+ShBLo 4PBCgwRxTtc+FyGUmUhHRN09XG0BeVRPupJ7Pfo= X-Received: by 2002:aa7:da95:0:b0:51e:e67:df4d with SMTP id q21-20020aa7da95000000b0051e0e67df4dmr91347eds.38.1689692079543; Tue, 18 Jul 2023 07:54:39 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Huacai Chen Date: Tue, 18 Jul 2023 22:54:28 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 0/3] MIPS: Fix build issues from the introduction of `need-compiler' To: "Maciej W. Rozycki" Cc: Thomas Bogendoerfer , Jan-Benedict Glaw , Guillaume Tucker , Huacai Chen , linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 Hi, Maciej, Even if patch-2 resolves the problem, I don't think patch-3 is necessary because the original patch makes code simpler and more compact. Huacai On Tue, Jul 18, 2023 at 10:42=E2=80=AFPM Maciej W. Rozycki wrote: > > Hi, > > With the addition of the `need-compiler' variable the `Makefile.compiler= ' > fragment is not included with no-build targets such as `modules_install', > which in turn means $(call cc-option,), etc. are no-ops with these target= s > and any attempt to evaluate these function calls causes all kinds of weir= d > behaviour to happen. > > The solution is to avoid making these calls in the first place, as they > are surely irrelevant where the compiler is not going to be otherwise > invoked. This small patch series fixes two places known-affected in the > MIPS Makefile fragment and also included a follow-up revert of an earlier > misguided attempt. See individual change descriptions for details. > > Verified with `decstation_64_defconfig' and `fuloong2e_defconfig' using > `modules_install'. Please apply. > > Maciej