From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 26D59C4345F for ; Sun, 28 Apr 2024 07:03:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=/3mqsaoGkOlMyeYPCVZGu0R9+rp0WypBCkfBjp4C1t0=; b=Lx59YkytJg/nia 9DBIOOHQfv9xYlY7F5sgvO26YfIG5kIYJfFunbpJwWJ+eAFLLKsBxsRC11hXW0t1ioaix9o9U7xlv +E6LHK9ohzJj0n5ypJ/fXx4OOqYEzq34Be3cWHU8sDodCp7uTCkOP6vIYHmv18EFxxGRulQ+/aJkq 0T73QIdklwVatzOh2p8TesMRHYTow+WirVLiahzPhjfbg2QGc+PBsmVRQZ+oGJmv54jMbbWptCCzT cFgbNo5cQUkVE8nCR41EuxzP4BqhMTriL4XdEt9woVB5/EsxlWVMefEl4aIFMPZ0JdYlTPcXPEMEc 2rFhh2m4c9mLs2eGtgHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0yZI-0000000H1bl-2A7b; Sun, 28 Apr 2024 07:03:24 +0000 Received: from mgamail.intel.com ([198.175.65.17]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1s0yZF-0000000H1aF-2bYW for linux-arm-kernel@lists.infradead.org; Sun, 28 Apr 2024 07:03:23 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1714287802; x=1745823802; h=date:from:to:cc:subject:message-id:mime-version; bh=y8WhzOR2LrdOimTpGSD5jOfN63+2rqjHOPWVTv5KT50=; b=juKXt5hQfW+vaEvc4lj4j0WiAwMkP0+fdiO9pmYYw6KCGKInw3W3Tlak NPgPnpdn36QXyNKFFn1/ulVfxoaeHe1f8eUM1G8JpcJ99u0vOVtUDhNfa bv3aoNQCfKjYRKKOkG6QVXROJnAqaCo7TPMHgIaljoc5h1iAQXmIAxrRv 3VRa0t0oIYSgDPOLAw+gUWDp3ypXgRMSWKbAqoVI2EBtp8xoRxPg6iT9q WMNUI3E1uikYWvr6XfOZjqQrtJqkMbDVGQIzko6Cx3v0qTDumuiOGmXEo 1GGTJl0K8v8XSedo24L/713iZVwziI0LKpSG4NoZ4iBsnBBDgPiwR1RAu A==; X-CSE-ConnectionGUID: P4JAGxomQxe6rDntYtcHtA== X-CSE-MsgGUID: Pl3/skfpR3iBtdCpayqabA== X-IronPort-AV: E=McAfee;i="6600,9927,11057"; a="10084825" X-IronPort-AV: E=Sophos;i="6.07,237,1708416000"; d="scan'208";a="10084825" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Apr 2024 00:03:21 -0700 X-CSE-ConnectionGUID: eDdQ5o5ySZ6IQUM0dhY63A== X-CSE-MsgGUID: V0g9lFEnS+uMNjRSeuCPdw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,237,1708416000"; d="scan'208";a="26441061" Received: from lkp-server01.sh.intel.com (HELO e434dd42e5a1) ([10.239.97.150]) by orviesa008.jf.intel.com with ESMTP; 28 Apr 2024 00:03:20 -0700 Received: from kbuild by e434dd42e5a1 with local (Exim 4.96) (envelope-from ) id 1s0yZA-0005wI-1r; Sun, 28 Apr 2024 07:03:16 +0000 Date: Sun, 28 Apr 2024 15:03:08 +0800 From: kernel test robot To: Russell King Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-arm-kernel@lists.infradead.org Subject: [arm:zii 78/91] drivers/net/phy/phylink.c:3769:19: error: use of undeclared identifier 'link_config' Message-ID: <202404281441.Hlarm92C-lkp@intel.com> MIME-Version: 1.0 Content-Disposition: inline X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240428_000321_792997_5DCFEB43 X-CRM114-Status: GOOD ( 12.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org tree: git://git.armlinux.org.uk/~rmk/linux-arm.git zii head: a98a469e79c72ce3b4d0d35d9f4c6799c2848749 commit: 338a60c57d4cd93a06091616323db3a899da75e1 [78/91] net: phylink: use phy interface mode bitmaps for SFP PHYs config: riscv-defconfig (https://download.01.org/0day-ci/archive/20240428/202404281441.Hlarm92C-lkp@intel.com/config) compiler: clang version 19.0.0git (https://github.com/llvm/llvm-project 5ef5eb66fb428aaf61fb51b709f065c069c11242) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240428/202404281441.Hlarm92C-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202404281441.Hlarm92C-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/net/phy/phylink.c:9: In file included from include/linux/ethtool.h:18: In file included from include/linux/if_ether.h:19: In file included from include/linux/skbuff.h:17: In file included from include/linux/bvec.h:10: In file included from include/linux/highmem.h:8: In file included from include/linux/cacheflush.h:5: In file included from arch/riscv/include/asm/cacheflush.h:9: In file included from include/linux/mm.h:2188: include/linux/vmstat.h:522:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion] 522 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_" | ~~~~~~~~~~~ ^ ~~~ >> drivers/net/phy/phylink.c:3769:19: error: use of undeclared identifier 'link_config' 3769 | phy_modes(link_config.interface)); | ^ >> drivers/net/phy/phylink.c:3769:19: error: use of undeclared identifier 'link_config' 1 warning and 2 errors generated. vim +/link_config +3769 drivers/net/phy/phylink.c 3706 3707 static int phylink_sfp_connect_phy(void *upstream, struct phy_device *phy) 3708 { 3709 DECLARE_PHY_INTERFACE_MASK(interfaces); 3710 struct phylink *pl = upstream; 3711 phy_interface_t interface; 3712 int ret; 3713 3714 /* 3715 * This is the new way of dealing with flow control for PHYs, 3716 * as described by Timur Tabi in commit 529ed1275263 ("net: phy: 3717 * phy drivers should not set SUPPORTED_[Asym_]Pause") except 3718 * using our validate call to the MAC, we rely upon the MAC 3719 * clearing the bits from both supported and advertising fields. 3720 */ 3721 phy_support_asym_pause(phy); 3722 3723 /* Set the PHY's host supported interfaces */ 3724 phy_interface_and(phy->host_interfaces, phylink_sfp_interfaces, 3725 pl->config->supported_interfaces); 3726 3727 if (phy_interface_empty(phy->supported_interfaces)) { 3728 phylink_dbg(pl, "copper SFP: PHY provides empty supported_interfaces\n"); 3729 3730 /* Do the initial configuration */ 3731 return phylink_sfp_config_phy(pl, phy); 3732 } 3733 3734 phylink_dbg(pl, "copper SFP: interfaces=[mac=%*pbl, sfp=%*pbl]\n", 3735 (int)PHY_INTERFACE_MODE_MAX, 3736 pl->config->supported_interfaces, 3737 (int)PHY_INTERFACE_MODE_MAX, 3738 phy->supported_interfaces); 3739 3740 phy_interface_and(interfaces, phy->supported_interfaces, 3741 pl->config->supported_interfaces); 3742 interface = phylink_choose_sfp_interface(pl, interfaces); 3743 if (interface == PHY_INTERFACE_MODE_NA) { 3744 phylink_err(pl, 3745 "selection of interface for PHY failed\n"); 3746 return -EINVAL; 3747 } 3748 3749 phylink_dbg(pl, "copper SFP: chosen %s interface\n", 3750 phy_modes(interface)); 3751 3752 ret = phylink_attach_phy(pl, phy, interface); 3753 if (ret < 0) 3754 return ret; 3755 3756 ret = phylink_bringup_phy(pl, phy, interface); 3757 if (ret) { 3758 phy_detach(phy); 3759 return ret; 3760 } 3761 3762 if (pl->req_link_an_mode != MLO_AN_INBAND || 3763 pl->link_config.interface != interface) { 3764 pl->link_config.interface = interface; 3765 pl->req_link_an_mode = MLO_AN_INBAND; 3766 3767 phylink_info(pl, "switched to %s/%s link mode\n", 3768 phylink_an_mode_str(pl->req_link_an_mode), > 3769 phy_modes(link_config.interface)); 3770 } 3771 3772 if (!test_bit(PHYLINK_DISABLE_STOPPED, &pl->phylink_disable_state)) 3773 phylink_mac_initial_config(pl, false); 3774 3775 return 0; 3776 } 3777 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel