From nobody Wed Sep 10 07:28:10 2025 X-Original-To: dev-commits-src-main@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 4cMC2y4mwjz67Dq0; Wed, 10 Sep 2025 07:28:10 +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 4cMC2y3z6Dz3FxN; Wed, 10 Sep 2025 07:28:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757489290; 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=O2Wie4zq4In4s6yadmbl487+zHvHVOuERw3Kdgj9a7E=; b=CdHOSQHPblk7DGUf66WuHIBPK4OxJDCrPrcuicfM54U28p7nrCsI20c4y5fbpzAasHM0p3 oaDMV1DSIYRK36UMJUQKDlYzMtzy3zfBdRFosPxZQxwdPVS31lal7YW+78bAlR4DFnKSN7 dUQb7xLG3arrgLUnZS6io1Oh2l5ekCyw87NsYU3ooHJlN9uxfGK2naoMb3ltmTuAtLoDuU pcw4k4uQYTqiANHJkteMenMIxJPqZO/DY47K7Y79YOAB7V3Uwvw5090rF+BQ6L8A5QVPhd V//rorYyHVHJrsfYz94nC2d5mibo46mqhh8D0JITfuPf1caAt++G04HgEx9/ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757489290; 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=O2Wie4zq4In4s6yadmbl487+zHvHVOuERw3Kdgj9a7E=; b=kGWapPA60XjJZDpdcppbgNxxmvzkcVeN03KtCJ118K/i6nSw8ebK3E4RQrKgcAswDV6Q+c +KwXZ4sTnLh/3ITmP39Cgi/KYCFK89/DZfYSRyAw//UpVxRke4MZtVKxRjLQnKtmWlSs7W 5PkLJ/sXw8KUK66DM+3CYTtL8RMs+BuSFmYRxS58T9WoAJcVTH0rRS42cavuZAKC+95K0/ unZ6LRToiB3C00EFgg1a8X9e5OBuRwkzkiSPKgptpAkYP/lo7DEuv0UM8NGxuP+AGYKhwt vXM4BgfbHAG0dGkVxVsLc4woVWaNFfoJcapvIPxrVtobKk1G5wDr0TEqZyYogA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757489290; a=rsa-sha256; cv=none; b=QqnZkol2ifdvzkoyGp+8Rm7TfyRuhz0ejjMpCfAhrjB64yzTgK3oqoJXdL0Zk7CIsujzDx I7bFMLZxJEaLzLN6Cwq9srmKQCj3UCasfVh0pv2Hq3HFxrfbKgVL6u3VGcAiPgpZlZpmFs qC34+vepc7rzG3WZAIsyeJkxxCEVs7CDJlxuKvdc+pft0c3cIa8bUVBPZPw6ekWlI7MAzY 7+XEr8v/1F/0GDhjByAIDqLXiUHc1m0Ne31V/DBl3nvOfy7d1eW9pmPlSkh7I4RSOsS3MG 4IHGqgSTHH7J631FUq4qi2/07ahdCxSMtNbm3kzg1GtgzPTdScojBuuaEVBLaQ== 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 4cMC2y3Z3Hz1BFD; Wed, 10 Sep 2025 07:28:10 +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 58A7SAvw089677; Wed, 10 Sep 2025 07:28:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 58A7SAOL089674; Wed, 10 Sep 2025 07:28:10 GMT (envelope-from git) Date: Wed, 10 Sep 2025 07:28:10 GMT Message-Id: <202509100728.58A7SAOL089674@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kevin Bowling Subject: git: 275f7d72ff6a - main - ixgbe: Remove unused function ixgbe_is_media_cage_present List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 275f7d72ff6a71bbe46b4282a88f0ea9a24be22a Auto-Submitted: auto-generated The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/src/commit/?id=275f7d72ff6a71bbe46b4282a88f0ea9a24be22a commit 275f7d72ff6a71bbe46b4282a88f0ea9a24be22a Author: Yogesh Bhosale AuthorDate: 2025-09-10 07:26:09 +0000 Commit: Kevin Bowling CommitDate: 2025-09-10 07:26:09 +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 MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D52467 --- 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