Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1650906lqb; Sun, 26 May 2024 10:26:46 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXdVQ8Bf6UYISfLR2nqEmufZr4/M3TDG+LHGIUortfOIY0ympTaBo7Pjhb2msewLMCJRAGp/qKbNcjh53J3D3ujOpNal4WeEnI+SSs0wA== X-Google-Smtp-Source: AGHT+IH8NSYBkl2Eyvuw7letxmjBObMGErLVAWVUKs3lWZiAgd2/jDJcqwWYTfX3pQTBcSc0iywY X-Received: by 2002:a05:620a:ce4:b0:792:929a:c20c with SMTP id af79cd13be357-794ab087571mr777221385a.28.1716744406042; Sun, 26 May 2024 10:26:46 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716744406; cv=pass; d=google.com; s=arc-20160816; b=Vomis2Omt+oTJ6w6BTnXUcQEkibyERTshdbwLyyAL0yjs82+PLMEs5fBldcv4XbOh0 eScElEBAhstbNMDrvfuGDhV2Uc4tewo49dF6niTXN4AXHs4iZtPez93L2Al/D9+DMmcv mBUUnpyoE1boYiHO3pejVdosGkhNBNqNPyT7Ecacy80h2GLVR2Pcd94f9sGnYazCoq7b tvQXxPZlB8HhhQWbLbbF62rEQeUiLnWgGK1iREIwYXCO7VxYP6kF5ov8afR8VUhlBueP 28/sD/g2g2mCdKT/1cCpTEYexoWoiLxdGaG5knZv+R8ZsFeYMnFEddLGMAdIUQEeGbwp OYeA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=MQ0kr12Y+48Q4e9VAShbfG29E9NVQKb0iwHkSFlfbVM=; fh=ijR0STXLsM6m40tuymOHeNDHBkTyQmawRhtWgBV3KBM=; b=Q4tKMSCH6jjO613gTDpCdRQ2NwOjF7GkcuRh6RYXCoxEZfYtrWMQr6/HLPmTMxH3rH 8FOMZycoA3mWdD63SFa+QiYbuc60hIBQ8HcGv11+3uyJM9jhbfa+CGKnGOYNvWj3iqlz PYqqCpRXvmSKHYXGh7czFLzavZXRcnZDfxaAhTg/8xZPy4kQVHCKQpPzjpu8GbIFgu6W amN3GFK6u2s9pOPedQ8dRzq1Jgj3DgVuLoYWzS1KcMrA2HOSCTKtGim/6Q3F23DEWBEW 0g1+t9dUA/wvRMDMCyflqzwywY+fk41LJHEjA3OcHirmfHJm33uaFQjbCW1IqVyd+FUJ wsKw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=RtYdLwtt; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-189796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id af79cd13be357-794abd170dcsi629069085a.245.2024.05.26.10.26.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 10:26:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-189796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@treblig.org header.s=bytemarkmx header.b=RtYdLwtt; arc=pass (i=1 spf=pass spfdomain=treblig.org dkim=pass dkdomain=treblig.org dmarc=pass fromdomain=treblig.org); spf=pass (google.com: domain of linux-kernel+bounces-189796-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-189796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=treblig.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id AA6351C20A76 for ; Sun, 26 May 2024 17:26:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 32E3757887; Sun, 26 May 2024 17:25:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b="RtYdLwtt" Received: from mx.treblig.org (mx.treblig.org [46.235.229.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 03FFE54F96; Sun, 26 May 2024 17:25:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.229.95 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716744346; cv=none; b=jv1QpxhBECJfDHela1GGkkqhRTRqeq/YTczt2plr77gAlHhk6rT8wa8wJSlYy4YtE9GGxwqIa32SdkTdX2rqMsNhWvjmIfG5BcV8veNkI43un6tz+FEtlGBTcpVi2Siikyc7Pba3V58n1mEoePLIql94KQpSzuAwrkuxsK6UdgM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716744346; c=relaxed/simple; bh=eWzHuG7A2dtXBOBODhzxQoEnvU87Oz4nAD+ahmMXaaY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=W7NYrThse4jBu5cJIn+IMA6o5XmRtJIoi6audZbSDZL/plWMtcXtV/FuTZjnLUM4tJTn5A4L0nxOkG3w1/anqOiOXSw14GzKKIGiUX2SNXKZFCsvVpu5KNBQOqhc9srnUDqqcnjYyqgZeFc2sZnD/Fgiy3WDK5kWAWC4hXQmYfg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org; spf=pass smtp.mailfrom=treblig.org; dkim=pass (2048-bit key) header.d=treblig.org header.i=@treblig.org header.b=RtYdLwtt; arc=none smtp.client-ip=46.235.229.95 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=treblig.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=treblig.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=MIME-Version:Message-ID:Date:Subject:From:Content-Type:From :Subject; bh=MQ0kr12Y+48Q4e9VAShbfG29E9NVQKb0iwHkSFlfbVM=; b=RtYdLwttkNDpFq0U aEgK2zSQTaOmDTx82w9+y0t9nsKWRjdBwVfxLMChtQ1iv/a/gxWdZdxlZOPQyLAwAw5cfNjp+YRIb CvgbAzxRiUkyoJlxF3RIpl528BAv2BLhygXwYUl1F6g64EiHH3urzhBf113wmpfh6F+t4jZzcsg62 kmS45m7NMMDe4SaBNDdJZlb4wJXRUrqLJMKymhEQymWZHbL3IbJ4moCt1Sl3Xuj8NrbMv1Xb0wzz2 tOPxU8l+dIeqxm9yIUlM/xj31YtIjc2u8CkSrlOcCVl53f5/6WH4ASuq+QyW5/+WsXULS0NFLwS6J ypERJkTGwoQZ+PDEFA==; Received: from localhost ([127.0.0.1] helo=dalek.home.treblig.org) by mx.treblig.org with esmtp (Exim 4.96) (envelope-from ) id 1sBHcl-002aYf-10; Sun, 26 May 2024 17:25:35 +0000 From: linux@treblig.org To: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com Cc: ionut@badula.org, tariqt@nvidia.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, "Dr. David Alan Gilbert" Subject: [PATCH 3/4] net: ethernet: mlx4: remove unused struct 'mlx4_port_config' Date: Sun, 26 May 2024 18:24:27 +0100 Message-ID: <20240526172428.134726-4-linux@treblig.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240526172428.134726-1-linux@treblig.org> References: <20240526172428.134726-1-linux@treblig.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: "Dr. David Alan Gilbert" 'mlx4_port_config was added by commit ab9c17a009ee ("mlx4_core: Modify driver initialization flow to accommodate SRIOV for Ethernet") but remained unused. Remove it. Signed-off-by: Dr. David Alan Gilbert --- drivers/net/ethernet/mellanox/mlx4/main.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c index 98688e4dbec5..febeadfdd5a5 100644 --- a/drivers/net/ethernet/mellanox/mlx4/main.c +++ b/drivers/net/ethernet/mellanox/mlx4/main.c @@ -169,12 +169,6 @@ module_param_array(port_type_array, int, &arr_argc, 0444); MODULE_PARM_DESC(port_type_array, "Array of port types: HW_DEFAULT (0) is default " "1 for IB, 2 for Ethernet"); -struct mlx4_port_config { - struct list_head list; - enum mlx4_port_type port_type[MLX4_MAX_PORTS + 1]; - struct pci_dev *pdev; -}; - static atomic_t pf_loading = ATOMIC_INIT(0); static int mlx4_devlink_ierr_reset_get(struct devlink *devlink, u32 id, -- 2.45.1