Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6900079rwd; Tue, 6 Jun 2023 03:43:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ69dL0FzlNJ+WmM2nzyJ2BqnqeMVhIMtlDXPYBHGmvQG5mPih2dxRlFwxEzgZlfvmdEbMLR X-Received: by 2002:a05:6214:2129:b0:62a:f634:882a with SMTP id r9-20020a056214212900b0062af634882amr1955195qvc.33.1686048220345; Tue, 06 Jun 2023 03:43:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686048220; cv=none; d=google.com; s=arc-20160816; b=b2PTOIJrfLLerBGCTsifIVLipSC1PFACswK5VWb+jJygWzW8GsJmOSvO0mRxI/+ra9 PaPUf+33ufdQ1jW2a6vIho6Bb3Zaw9huBjpfS0Cgn6RD6TmFI278HE6smxHGqKDXK3Jy HCM3E3Fq60TtFFtRa0A6MrDHPl3PQAFTRMVr1LDA4OVrL6RLXILM4uAMh3ktCWxFIr2R qoNGHKpYX/f/R58/4cFy2wno5Wpf1hDWXfVT2k4Ebx+YFKazVQ8GzCkxpduvrP5ZrYe5 bhCLuWrMxzrn3P/4qbfexmXUUhHCIMQ3hNq/5HmCPpwknrq2gzJEZ1mbj0hOvSNITM3Z s+1Q== 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; bh=kBvbcjFwHjJcSk+Gn7hNNdJlLztw5ZRX6QyYwSh3/JE=; b=tmuB72OS8Xt9X+22A8vzPi4WpGxIgq3I9qbQy9QRUo6j1bfYbX8o5WWAvS7nfT2g87 wvjMC5phobAbkbwY5jKd5hsewLysqg+HAFpfc9422l4MREJs2ys0zKnJjQ1gALYYcpz2 54RiPkXvtAKw9q9ENwGTA0yBGOKO+UHDo/ngyIzIL5Twqrg44W4euno3KH8DoIgzKSN+ vZemak917Cay2lVxVCvWGfHz9+MJnrgKWULsowqKn6Z2iOsDSSJbTEDwVXKFZ1BbJI5w mIR7WzxbtDFMZir29FtRj9Zk+JNSyh4LQW5978hZjGJtduSGo2bVDJJxRivUBlCVh5k0 ZVJg== ARC-Authentication-Results: i=1; mx.google.com; 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 q11-20020a05621419eb00b0061b5862a2a7si5993964qvc.595.2023.06.06.03.43.25; Tue, 06 Jun 2023 03:43:40 -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; 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 S233097AbjFFKco convert rfc822-to-8bit (ORCPT + 99 others); Tue, 6 Jun 2023 06:32:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236727AbjFFKcT (ORCPT ); Tue, 6 Jun 2023 06:32:19 -0400 Received: from mail-yw1-f173.google.com (mail-yw1-f173.google.com [209.85.128.173]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8368B10C6; Tue, 6 Jun 2023 03:32:15 -0700 (PDT) Received: by mail-yw1-f173.google.com with SMTP id 00721157ae682-565e6beb7aaso75470907b3.2; Tue, 06 Jun 2023 03:32:15 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686047534; x=1688639534; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fJBagGQruk41RMozweoSMnqFuyRsRNH9Kz3lbWgCrDg=; b=ZS4n6g8Xn9pk4nj/555htUTZOSc3WAhyKl7lZxoWnNUCmiV5fgcCNC/PhotXbPf7gl 7iGyMFv0NimGObo93vTrWfDJg4BNoGG+wE4Rm1UXTlRcH8sAHQxv2FrF8aVZoUgB2Vpi MvyZOtu04sl2xHpwjpKLmYiFwt4m6A8w5oTvInlNow73LPrHN9jnjelFVyTjZam0kogB 5C5kzjKpoEUzhc+DS20k/VpFI+JG6WGtMAf7e1t6Ez6ca4Hbb1K32w9aoucDCCtx1Bjd HivJvd3mhkb07hftmu5NXp8MwdksBcxykdE07iuwlEBAZeh5si/zBLXvh+roetEohXzZ pWNQ== X-Gm-Message-State: AC+VfDw8uO7qVNwTCLMg+fWwp27Aambqkq4WBEsVImKPQqx15B/sK/iw KfyS5LE5frSELhMhr90g596dAY8AFNbVvw== X-Received: by 2002:a0d:e6d4:0:b0:565:e87f:a78f with SMTP id p203-20020a0de6d4000000b00565e87fa78fmr1872057ywe.25.1686047534573; Tue, 06 Jun 2023 03:32:14 -0700 (PDT) Received: from mail-yw1-f171.google.com (mail-yw1-f171.google.com. [209.85.128.171]) by smtp.gmail.com with ESMTPSA id h66-20020a0dde45000000b0055d7f00d4f7sm3927127ywe.22.2023.06.06.03.32.11 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 06 Jun 2023 03:32:12 -0700 (PDT) Received: by mail-yw1-f171.google.com with SMTP id 00721157ae682-568ba7abc11so75529947b3.3; Tue, 06 Jun 2023 03:32:11 -0700 (PDT) X-Received: by 2002:a0d:df91:0:b0:55a:3560:8ee0 with SMTP id i139-20020a0ddf91000000b0055a35608ee0mr1959649ywe.20.1686047531077; Tue, 06 Jun 2023 03:32:11 -0700 (PDT) MIME-Version: 1.0 References: <11bd37e9-c62e-46ba-9456-8e3b353df28f@app.fastmail.com> <8db9886f-e24f-44ee-8f8a-880dc3e4bf75@app.fastmail.com> In-Reply-To: <8db9886f-e24f-44ee-8f8a-880dc3e4bf75@app.fastmail.com> From: Geert Uytterhoeven Date: Tue, 6 Jun 2023 12:31:59 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: arm: shmobile_defconfig: ld.lld: error: undefined symbol: lynx_pcs_destroy To: Arnd Bergmann Cc: Naresh Kamboju , open list , linux-next , lkft-triage@lists.linaro.org, clang-built-linux , Linux-Renesas , Linux ARM , Netdev , Nathan Chancellor , Nick Desaulniers , Anders Roxell , Geert Uytterhoeven , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin , maxime.chevallier@bootlin.com, Simon Horman Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE 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 Hi Arnd, On Tue, Jun 6, 2023 at 12:21 PM Arnd Bergmann wrote: > On Tue, Jun 6, 2023, at 11:28, Geert Uytterhoeven wrote: > > On Tue, Jun 6, 2023 at 11:16 AM Arnd Bergmann wrote: > >> On Tue, Jun 6, 2023, at 11:01, Geert Uytterhoeven wrote: > >> > >> This won't work when PCS_LYNX is a loadable module and > >> STMMAC is built-in. I think we should just select PCS_LYNX > > > > Oops, you're right, forgot about that case. > > What about using IS_REACHABLE() instead? > > No, that won't work either, as DWMAC_SOCFPGA can be modular, > > with STMMAC builtin. > > It would work because of the 'select PCS_LYNX' below DWMAC_SOCFPGA, That was my first thought, but it won't work, as DWMAC_SOCFPGA=m causes PCS_LYNX=m, while main STMMAC can still be builtin. > but I think that's too fragile and would easily break when another > dwmac front-end starts using PCS_LYNX without have the same select > statement. I think we should always avoid IS_REACHABLE(). ;-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds