Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp1854675lqb; Sun, 26 May 2024 22:30:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVSzj7XOw8GMnDZ0ONJ523jDMqtkTjQaZOd7cmL9U0VYuRDhP3s5EZLbjF0ZN40DkoPYh1MlISpnbnbHIvuzok8z3OjHDhNxNbrzXqo1w== X-Google-Smtp-Source: AGHT+IHpw6fGjSrN/WqpI4AofANu0gCFRj34Wnm5jAW3s75wxmqtMTixQaY9+vE5+SCOGdRnETcS X-Received: by 2002:a17:906:c55:b0:a59:c3a5:4df6 with SMTP id a640c23a62f3a-a62642d471amr554014766b.29.1716787807647; Sun, 26 May 2024 22:30:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716787807; cv=pass; d=google.com; s=arc-20160816; b=ZmPOVivDSqTHVVxXIUfN9rQwy/Gh8hqxvH2XnXubwiCxA6p05d03xykKIK8SIGEN6Z Hcin21WU/Fa7nzl/W7Emqj/f4fyFksilTO6NK1fHCfnnuwioX+P/SmX5HWzb51W8+v9f mwOUkZEHpy+xbEXkBDQ/s7vUYIR3jNcYUbsR7OIh3chOF0fftyP04xA51PKX4tNN6qh9 8J41PM+bIGrgcgiWZ0ohLpsXvd57pJJKSwgX/SB7MK9g+Zw7AnSk/FPNzSbG7JUlnNw+ 5GIwF09qrc3lh3yg42aKRkE/blk33Fr4f/KYAZgqukvUuBqCfezrW3FpGOHPTQpJoiqM Zp1g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=FHpKdJ2Jnc6g6Omnv8B6n674Ws6YYn77dRRFOGAXs/I=; fh=3xHc9NVp3/D8euCPKplrTXo2l2xyY0D4KpP0WHt1yfk=; b=VXG8SD8E9xOBJlrmCVQH0AKJUTwg3QM0UIhY2/prxj6j8ld/4jqBzSGj1jQsYj2i7o 0DQRnZuHCnLdcXm2AFobpy5wgl4RiYuZG/MhY4BOIl/BxwCjtfDIHEzgPqM1RlBrPUkB D5hqT0QGWoYHODDmR3LDjF6Iwvri6RUVF4EeSLrvZh1r5FYVT6mx8cLgn+NoZ7oycnkr Gpzf4YcdtQQhjPG/dwA8N2HsIgfDDaeSxOSfWAIgoskmJdIx3IMDbNjqfzi1TmbRwMq9 +XO8ErdufbGLv1yifNI/hrgBsUodHU7hNMlpfksj48n+VoVOmlBpQXFWWoyTxzQYnMXO U2JQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=l6nalNrQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-190046-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id a640c23a62f3a-a626cd90175si349390266b.716.2024.05.26.22.30.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 May 2024 22:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-190046-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=l6nalNrQ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-190046-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-190046-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 4EA241F21B30 for ; Mon, 27 May 2024 05:30:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4BE01DDC1; Mon, 27 May 2024 05:29:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="l6nalNrQ" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ED96D3BBE2; Mon, 27 May 2024 05:29:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716787797; cv=none; b=OKFuKwSgq0FlikSkxl0tgSp2XK8HH0hGIrt3DV0HDe2X+AmaApK51+ly8p2OxW2sPeSieL7wn7G/hN1rlQ5TOqcEo53hD0bmIkFcl39yvA1ubUnEzTb2PY3OGoV23nk60RiD+2N30bXcj/uOfkl/UHw+wormk77lsb23DHwptFI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716787797; c=relaxed/simple; bh=RY2GAdnVRrvLXregMrzh7G0FGtEifQ1q4+sMzLagkqo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=rIQnXjIj2tel3cfUa5YW2Ud9nZcaF6ETBi799yyfWxzwJTUfXmyQHgooCh1dmDqE3CAV/GNwhh5Yrx90DiHgs1vUbzp2BGzzFRiIDHr3IuPH+9W1CAyAiHKFE4vhqqARiS1Tk/pp5drMhGEVFBcHSBGonNadWyD5eXOw+UBiuI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=l6nalNrQ; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-420180b5897so42360765e9.3; Sun, 26 May 2024 22:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716787794; x=1717392594; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=FHpKdJ2Jnc6g6Omnv8B6n674Ws6YYn77dRRFOGAXs/I=; b=l6nalNrQ3HoAl3x51eDaurqAEzmxVKa2FBK2ijSyNIA1EIY+isfHHnPvpAaPuK+5b5 JpKb7itRGPC9nzZjNCxqetTFVmHq95tuXJvhvHvw61Y07Pc659/dG86drPW6xdbqpD2X 9v//JLHk3r33H9fzpJP1X4MVF4yID4h54nvhMzwgANR0y1wj3uPQgoU+KbvbOwptllTG 5ol0Q9ASvPSZkgybkAntnkD7CGj3xxAEYrws/U+plsj1IPzL0HEZCV+DnIWZ+/j9wo8b UqgcooLMKUIBgiMAh0yGZ9gBmo60OHpkfr4TpnJ7PevgfNEmnOt1XROf9RDjeGb4iuBt mKrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716787794; x=1717392594; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=FHpKdJ2Jnc6g6Omnv8B6n674Ws6YYn77dRRFOGAXs/I=; b=nc90nfZ4/Bn+exusQWxth3kAYge4iOfWYcD5D8VSKkRHPvqf5YMrs076X3dtnrejG3 7u4fCf2El1nY0xGT7ol9v0Oa6FZcSrlaoqHCO+W/4i3Rk4Pauof/C3AyhqCfS3QyXYdx O/QnDR3AGTNTsai6s8PCuE/gqkgaKYNPVLqaRT0kTGTLzJv092A2DBXdgrS/1qIIP9pw gLdc7bVy4zx0yZ7DOa3+pCleayBAvaGIdOQknEvjeCoXU0Of4Gf30eabBGZcEGdV1fG9 n057TYWNRwZCsFCKDWvqvkBtCYyRct9VsU2YaCcDH/vb6CzpU3lkansMFRfvGUI/vEbS x69w== X-Forwarded-Encrypted: i=1; AJvYcCUWxmI6kOm6tAUXeOWwkfVxCjVfc9o12iizhmxgbBi2WV2KzPhwSJ8ecTRBtCOpBmnyVb81QSsRfouHPJ5pbvzrUR+tyaK/lgwXImuUolnkhwJ2ZiXL1NUqLm+7c+UHucUQdLZt X-Gm-Message-State: AOJu0Yytz2f2vGMEiylBfive4luzchU4Js2dnuy7bH9I2pgPkcOVYHyw thRZeNhEvlFgcg6ENuDvLd4hizHspWpY2kuMJV4BpU6NDVW+HMk3 X-Received: by 2002:a05:600c:3b9f:b0:420:29dd:84dd with SMTP id 5b1f17b1804b1-421089d16f0mr66023365e9.3.1716787793975; Sun, 26 May 2024 22:29:53 -0700 (PDT) Received: from [10.158.37.53] ([193.47.165.251]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-35579d7de62sm7940043f8f.6.2024.05.26.22.29.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 26 May 2024 22:29:53 -0700 (PDT) Message-ID: <57520ee5-0d7d-40df-8edc-de85b1005453@gmail.com> Date: Mon, 27 May 2024 08:29:51 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/4] net: ethernet: mlx4: remove unused struct 'mlx4_port_config' To: linux@treblig.org, 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 References: <20240526172428.134726-1-linux@treblig.org> <20240526172428.134726-4-linux@treblig.org> Content-Language: en-US From: Tariq Toukan In-Reply-To: <20240526172428.134726-4-linux@treblig.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 26/05/2024 20:24, linux@treblig.org wrote: > 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, Reviewed-by: Tariq Toukan Thanks for your patch.