Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3819307iog; Tue, 21 Jun 2022 06:39:02 -0700 (PDT) X-Google-Smtp-Source: AGRyM1sKuZWYtPzEDNSsiZuol8L+y1Y6vJdRzK6We2P1gqV/sTPdGWuy0Qs+7u8h5Sd56175cjPV X-Received: by 2002:a17:907:d24:b0:712:1c03:c04 with SMTP id gn36-20020a1709070d2400b007121c030c04mr26262278ejc.375.1655818742336; Tue, 21 Jun 2022 06:39:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655818742; cv=none; d=google.com; s=arc-20160816; b=VnafZjuhLOwaXEHmZ/8TMV1JMsmxvEr4UXOtgay+OA2BJhFhV+IKt3QEjew7OGnSB9 57uXbsFjokDVK/j6rXElhh+aE5yP32mfh5q8QuMsgPk4LfpWSF85oKpAVhtxqF8eitCS s/WtfXOmFfyNh7U2d+B62uCqYBxClroTgnSd3lJnhBoUKtIZWUyhwHGzK4kNSrrWGamb KvXb0rym8WQpi1v+5cwiyVlDwDnlQcG7YG00DMNYSEdOghuDiE1SnYLP6dUFDDQzPh+D 6on3TPR0IgrTHXbyPLwS3P2oK3Zcp7QuQD4t9TS96dUBIbwZQTjhR8yIkSpWYmp0PdN2 zalA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=G80LNemDmZomH/5dG561zVRY02eIMOerEfE83vdjZHg=; b=1GFR8FGVHMstK4CgHavaQzVsjvGcbEx6NgxzZCOQpZ4A2ZgXHLtcmr/pq3UHcDKJmx 9RvjB1FHsOGCnGNRa0NUvnKsDcanzkLw826x8Xo/W2fJSUE9oNoPB8Ke8nzC4vHUvevK M9BDKf7Yo4FYw/E9QOdHLkuP37n0x4h5YUDAj+lHO6yPPNfoy8qLwDrKVMJVKFQUTyqJ NBMuEPQeDyBPuF6b35FYLLvphRRUxnsamrdo5zlM6v0mS4WIplyrds8dgePRZW9HOnZb WzJjX23X0WqjhiUuQcKgMMuXwLdJpSYzHJDvoftmijN8UCUOBmI/1TFdxo++KFl+50pT Ltmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=OnwqUjGZ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gs42-20020a1709072d2a00b00711cf82cc03si13430169ejc.830.2022.06.21.06.38.36; Tue, 21 Jun 2022 06:39:02 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=OnwqUjGZ; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229626AbiFUNfG (ORCPT + 99 others); Tue, 21 Jun 2022 09:35:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351916AbiFUNdJ (ORCPT ); Tue, 21 Jun 2022 09:33:09 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35B1028983; Tue, 21 Jun 2022 06:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=G80LNemDmZomH/5dG561zVRY02eIMOerEfE83vdjZHg=; b=OnwqUjGZM/WkATzH2paqr7BPUu zQS/hPvFxad2qilfB71xD1PlP5LEqIgNC6vLSQaXAukL0/Ud5fw4RxkCCnNbCNPysOp6zW6q+bMiL DckLx6qqM0tOaJiw+kMWqZDcavgiHQ8UycMU94twN8oOLqaXgCofaayVC4TXC/uKUpktjgewuWH1Z KRfeovTzP8grfg5Fg5rib3Za2bdULIymDSzYt66z67jEU4sv6qhg3mVssMp13fW7ej0iqrLkrAIgB ORy4jdcg5WBumsobuT5TxkkFeTlT4fhY/JxCRfnIhfTv3ZArwqbhELlAcSdONImzIk9mivs7qq8Hx MMDfNe8g==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:32964) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1o3dx4-0002Qr-Dq; Tue, 21 Jun 2022 14:29:53 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1o3dwv-00064M-6m; Tue, 21 Jun 2022 14:29:45 +0100 Date: Tue, 21 Jun 2022 14:29:45 +0100 From: "Russell King (Oracle)" To: Zheng Bin Cc: andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, boon.leong.ong@intel.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, gaochao49@huawei.com Subject: Re: [PATCH -next] net: pcs: pcs-xpcs: Fix build error when CONFIG_PCS_XPCS=y && CONFIG_PHYLINK=m Message-ID: References: <20220621131251.3357104-1-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220621131251.3357104-1-zhengbin13@huawei.com> Sender: Russell King (Oracle) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE, 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 On Tue, Jun 21, 2022 at 09:12:51PM +0800, Zheng Bin wrote: > If CONFIG_PCS_XPCS=y, CONFIG_PHYLINK=m, bulding fails: > > drivers/net/pcs/pcs-xpcs.o: in function `xpcs_do_config': > pcs-xpcs.c:(.text+0x64f): undefined reference to `phylink_mii_c22_pcs_encode_advertisement' > drivers/net/pcs/pcs-xpcs.o: in function `xpcs_get_state': > pcs-xpcs.c:(.text+0x10f8): undefined reference to `phylink_mii_c22_pcs_decode_state > > Make PCS_XPCS depends on PHYLINK to fix this. > > Fixes: b47aec885bcd ("net: pcs: xpcs: add CL37 1000BASE-X AN support") > Signed-off-by: Zheng Bin Paolo Abeni has already sent a patch, which I think is addressing a similar issue. Please see: https://lore.kernel.org/r/6959a6a51582e8bc2343824d0cee56f1db246e23.1655797997.git.pabeni@redhat.com Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!