From nobody Thu Oct 02 17:15:30 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 4ccz2W0vdqz69b3m; Thu, 02 Oct 2025 17:15:31 +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 4ccz2W0JPqz3rPr; Thu, 02 Oct 2025 17:15:31 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759425331; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G7exXVd4IaD0G1eyTTYg4dFMwCg0MWI8B+O4CpzE0l4=; b=LDCwLLphfR3x64u/q1c7o4wqozpm32VvLHr8jWrkyA72PwpN2SWfIbEZ3bf88iPzX+6YoO S3fvAlDm2b1a8u5t6rljps/PpzsBr+ge1/bJG/0FCwoFDYzLRfKjW1wFR8z0INo3qvynue owJKyX1SL1PAKSq3XufgpsItoeWsG/iyPtR0cdytd7nab4ZYA2ibooi4veCesNrXuPmJ1V 9Ld3vIUaTMXnNRC9/wzqAOxLzXsXW5aiLoRmnX/47k7SF9/LeOfOKVmXDDSE7dJsSNOn45 E+FAv4tWRDB8/GN4gep1FjsN71Nr2Fctv3lhYBqbAKmXNPboKRjVKwUuBPneqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759425331; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=G7exXVd4IaD0G1eyTTYg4dFMwCg0MWI8B+O4CpzE0l4=; b=kaTpg5uL8n8V584PmzUl9KCVlN/8GqkToWt8tvekFZ0gGQbc80hHYwpCN6tCe6zV6zdrbQ ZsGSNy969YJcpDVZH+rfQjPGPp2NXU+h0tBJ3iMlfKYf6+L8pP68TvgnrgdMWr8GezAild 9F39OzmWplnfOuO67xPtRj3/l1Yd/KGHhg/Y/dQ8Xc8VBN/9QnZeTm5xnXGtJ9TicQ7pYi Z4FhQpJYyWBcP+6EMZr5BLyDhdNnQXJ5oltZAaVH6398ExYCPAGOS+4DzPts9i/d+mQ8x9 Rxf82Uoqk92tR++Irvxec0aRQTw931N7yrbcEg6qXLsjcE5NFgI1rQj6tdylxQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759425331; a=rsa-sha256; cv=none; b=vI+kvwAI7RMnwylPMeDRJtlGJAYN/l8+SbNVjOu+j1FsKTLoIEMBWrIaDxlnODaOnCVpRa Gw5NtXsk+SxSlO0oNegIt73irRqsYWrap9CIZ2b5LWx2Nk5r6EzF4NMxLMgSmouqpkskGb qB1D6nYho23F0kFKGgj7UW6j4Kl9uAHkJm8I06vJ4XfAJPgSuKJXeMuoOlG61m5f7dJiSA RRBX7ZZY49Zuht2G1tZ4SsJ6RKH01/aHfh/T6XhFqdN38lDoRhNhArkwZRYEQ96x/8X3EK oFDsCFYjp2Kxi+OHRj3jOis3Dj5KSb/94XBelNu4L/yqGHfSzEYaAseUBV9zug== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ccz2V6yxwz2S7; Thu, 02 Oct 2025 17:15:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 592HFUbU065883; Thu, 2 Oct 2025 17:15:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 592HFUcl065880; Thu, 2 Oct 2025 17:15:30 GMT (envelope-from git) Date: Thu, 2 Oct 2025 17:15:30 GMT Message-Id: <202510021715.592HFUcl065880@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Krzysztof Galazka Subject: git: 772b37053bc5 - stable/15 - 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: kgalazka X-Git-Repository: src X-Git-Refname: refs/heads/stable/15 X-Git-Reftype: branch X-Git-Commit: 772b37053bc583d52410e1432817e95bba60fa75 Auto-Submitted: auto-generated The branch stable/15 has been updated by kgalazka: URL: https://cgit.FreeBSD.org/src/commit/?id=772b37053bc583d52410e1432817e95bba60fa75 commit 772b37053bc583d52410e1432817e95bba60fa75 Author: Yogesh Bhosale AuthorDate: 2025-09-10 07:26:09 +0000 Commit: Krzysztof Galazka CommitDate: 2025-10-02 17:14:35 +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