From nobody Wed Dec 17 21:35:46 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dWnCk4TzTz6LSTp for ; Wed, 17 Dec 2025 21:35:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dWnCk1bzcz3GB3 for ; Wed, 17 Dec 2025 21:35:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766007346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Xe0+n3QJlLi6mY8y19QFXvUXQpW56Jcl7RSQS92nICc=; b=aEeE1wBzhpI7/FrXfeYrOTnYqZagjO94v7SFpVoPM7nNQbZU36yFISIp7ikX+tBCfI3Uj4 8aaPSpQdve3xJmdkgcLaVoWHs0tdYAWvYpKvSZB7fvQY4HYTUgFAAfLaSxfdDGmJ4sxpwF oaJ1MgDg3t9Ne+MBRulJSgusKYJ+eDU2MsyGS9wOin3aAsRZJnGXr7moD28Q4NeImCFGMS erp39SREw9a5D6Qq5CVU9Ht22mh1bA/watfTdSCn2bugbJMONRkHeokLIt5iyuqimGEa8O Cfm8NmUSh3sRTi1gip+6emEqpvyNqr9zecnXMhxwlRNvq8lFN27PtlZVu7sauA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1766007346; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Xe0+n3QJlLi6mY8y19QFXvUXQpW56Jcl7RSQS92nICc=; b=ubUbw6nfjj6RLmIt3gsg6k5GFPEHkmVh7rnuo0SwL5vkyG34CzehAmhY4yLsUJD1xcK0IJ SsStpxU4K6HKKj8HbJXD9AgvtTtxqhD8YXOnyilzTOgwfZCWFIY2MUCJgSL3KCkurHH8dd DIetllxO/jr54rLyIz+V3iOYdBl99JLiwsbtlqUSN2L4bNzafSWdmXk/hmSB7kVIDhSzrm nog1/6vx/vSFdsfp6UVZNXVa9/eXKUNfeP5NdkL58i7p9DSaGbXpxoOM9TLBuwuXFaFoIO 3T/YiLQfJaAwGtxos8T6r+FKAvNY2DeXZqAp5gutSJ3ElxuEMDBbjFMtZ/9PNw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1766007346; a=rsa-sha256; cv=none; b=ZMMEqiiZG/ajr9C0JQh92XoWg1j5MtBfOiGqXcde+Gt2Ip3hXqDFuuiHYcyJi859hZfkPB hQUJ0q5JmC6KYvPGtbkDmnwaB6hvCcS1g6ZCAv/AYPXZHV2dY/jIPPu3dXnzXsn5xGvPFF pNp7qR7eFw9gJVzGK5p+xzAdTvblJ3O2o8DAWFjiPsh3OLMGWa//toZhXcc82Ncafvko4S Xd7QHMwsA7cCuYsS5bFuDnh15n3d2d5rlcZpMFtS3PR+L2imJvbrZMDNBrC+Gk27VMWWK1 1oIwxtIxCSwxjfM3q0gH6S1sn5BjCB4iDCUQOzlVp9QQ8xC/vDhv56G01r/Lcg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dWnCk1C0sz18Lm for ; Wed, 17 Dec 2025 21:35:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 45100 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Wed, 17 Dec 2025 21:35:46 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Cc: Yogesh Bhosale From: Kevin Bowling Subject: git: 645942dafaac - stable/14 - ixgbe: Remove unused function ixgbe_is_media_cage_present List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 645942dafaac8190459097b18eb16d9eff5148db Auto-Submitted: auto-generated Date: Wed, 17 Dec 2025 21:35:46 +0000 Message-Id: <69432232.45100.5df3c1e5@gitrepo.freebsd.org> The branch stable/14 has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=645942dafaac8190459097b18eb16d9eff5148db commit 645942dafaac8190459097b18eb16d9eff5148db Author: Yogesh Bhosale AuthorDate: 2025-09-10 07:26:09 +0000 Commit: Kevin Bowling CommitDate: 2025-12-17 21:35:24 +0000 ixgbe: Remove unused function ixgbe_is_media_cage_present Remove the unused function ixgbe_is_media_cage_present that generates a compiler warning. Signed-off-by: Yogesh Bhosale yogesh.bhosale@intel.com Reported by: markj Differential Revision: https://reviews.freebsd.org/D52467 (cherry picked from commit 275f7d72ff6a71bbe46b4282a88f0ea9a24be22a) --- sys/dev/ixgbe/ixgbe_e610.c | 34 ---------------------------------- 1 file changed, 34 deletions(-) diff --git a/sys/dev/ixgbe/ixgbe_e610.c b/sys/dev/ixgbe/ixgbe_e610.c index 95c6dca416c6..18c4612446e0 100644 --- a/sys/dev/ixgbe/ixgbe_e610.c +++ b/sys/dev/ixgbe/ixgbe_e610.c @@ -1399,40 +1399,6 @@ s32 ixgbe_aci_set_link_restart_an(struct ixgbe_hw *hw, bool ena_link) return ixgbe_aci_send_cmd(hw, &desc, NULL, 0); } -/** - * ixgbe_is_media_cage_present - check if media cage is present - * @hw: pointer to the HW struct - * - * Identify presence of media cage using the ACI command (0x06E0). - * - * Return: true if media cage is present, else false. If no cage, then - * media type is backplane or BASE-T. - */ -static bool ixgbe_is_media_cage_present(struct ixgbe_hw *hw) -{ - struct ixgbe_aci_cmd_get_link_topo *cmd; - struct ixgbe_aci_desc desc; - - cmd = &desc.params.get_link_topo; - - ixgbe_fill_dflt_direct_cmd_desc(&desc, ixgbe_aci_opc_get_link_topo); - - cmd->addr.topo_params.node_type_ctx = - (IXGBE_ACI_LINK_TOPO_NODE_CTX_PORT << - IXGBE_ACI_LINK_TOPO_NODE_CTX_S); - - /* set node type */ - cmd->addr.topo_params.node_type_ctx |= - (IXGBE_ACI_LINK_TOPO_NODE_TYPE_M & - IXGBE_ACI_LINK_TOPO_NODE_TYPE_CAGE); - - /* Node type cage can be used to determine if cage is present. If AQC - * returns error (ENOENT), then no cage present. If no cage present then - * connection type is backplane or BASE-T. - */ - return ixgbe_aci_get_netlist_node(hw, cmd, NULL, NULL); -} - /** * ixgbe_get_media_type_from_phy_type - Gets media type based on phy type * @hw: pointer to the HW struct