Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1980388rwb; Thu, 29 Sep 2022 04:54:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6cwaCCFQidkeoiEclRSe61SAePoCN+QXhGszUQy/vjxFsqqDwoNPhWO6Eo42T/XrSSoIvv X-Received: by 2002:a05:6402:2146:b0:458:15d7:b99a with SMTP id bq6-20020a056402214600b0045815d7b99amr3017181edb.24.1664452457286; Thu, 29 Sep 2022 04:54:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664452457; cv=none; d=google.com; s=arc-20160816; b=d6Ka8pjhRvg9mKfgcKb8sMSrVfbnhaUzcq9KIfAQbR0cYymV4sRtRUlxqYenOF2arA /VnmEqCNwprZd9SCWiNMnXd+Cpv6Ywtea+rF4CVFSuprgXmZeeNasSY9c6WFMfn+rUDv 3pHYVHSiuHaI2aM+I2kXwFgmw23SYR5V+SKaPgK13zGoOPYwvS5+YpbqE/5xWo61baNv Mf75rDW6mkIMrlF/hoEw/yHOK0MM+6GlnfGN3/g1z+MQWHjCXNfQ9njgbTHu0jHEw6fa g/5+QgE5/en1lvgdhTTP/QKGu7ByhlluJDKkiM0zpOPkFQu8cjTYCkSI9s4bwgi0Mi3H UweQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7bvuulWDxXJ0RP1Sxh0zIbvWapcXVvdLYOPFIo+WtzY=; b=rcQZ7KCm3xaOqHhagkIjqbSKtGZ9ENR+JvTLHhewLypVwuwBAJF6EnEDH27pL9mPXO RGR/UQoKH+ALig0DADPxHPcsgyen8tqReAo0aZVciVq8WJnDwW+CWGgIl51JW27hnRg8 bHOJgsN/Lpd2lFFx5idn5JjvDhYfMQJapQcKK3ChSU3JDZdPOhsKQKxmZoJb05PQGmnW nS4iIKYqHZuirXavWXu3lc/8Kyvjw4L/P2j4o8K6uCC8Gi6JjZo1BaSC4WZi+fUQZiFL GbsPwmg6m7f6dhpd0RE0ebzFrg62m/lX6IBu2ZS8TedtmJ6e7XIftfPDvAnYkR4wgJXS y8vQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=N9g5hlFH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk39-20020a1709077fa700b00787abcb1ce0si3178390ejc.679.2022.09.29.04.53.51; Thu, 29 Sep 2022 04:54:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.com header.s=susede1 header.b=N9g5hlFH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235457AbiI2LqG (ORCPT + 99 others); Thu, 29 Sep 2022 07:46:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235301AbiI2Lpm (ORCPT ); Thu, 29 Sep 2022 07:45:42 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9B72142E04; Thu, 29 Sep 2022 04:45:36 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 209FA1F894; Thu, 29 Sep 2022 11:45:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1664451926; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7bvuulWDxXJ0RP1Sxh0zIbvWapcXVvdLYOPFIo+WtzY=; b=N9g5hlFHwmc4jF1XmH5alJaH7i6vM/pdcSIjjaOq9r2ubHDOQN03GDdgRAGIVtZVAfDKya MdYgfSk9snobKAzini06bTtbxHp4Cy27+vxyjCYoikbzUC1dLL7y4a3/ukubhOfzFrNnkv RNfFMd9QvMWpfmzDwhXa3tpO7gTrR9o= Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id F11BF1348E; Thu, 29 Sep 2022 11:45:25 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id WYj1OVWFNWNGdgAAMHmgww (envelope-from ); Thu, 29 Sep 2022 11:45:25 +0000 From: Petr Pavlu To: saeedm@nvidia.com, leon@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Pavlu Subject: [PATCH] net/mlx5: Remove unused ctx variables Date: Thu, 29 Sep 2022 13:45:08 +0200 Message-Id: <20220929114508.1903-1-petr.pavlu@suse.com> X-Mailer: git-send-email 2.35.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove mlx5_priv.ctx_list and ctx_lock which are no longer used after commit 601c10c89cbb ("net/mlx5: Delete custom device management logic"). Signed-off-by: Petr Pavlu --- drivers/net/ethernet/mellanox/mlx5/core/main.c | 2 -- include/linux/mlx5/driver.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/main.c b/drivers/net/ethernet/mellanox/mlx5/core/main.c index 89b2d9cea33f..233082c32673 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c @@ -1547,8 +1547,6 @@ int mlx5_mdev_init(struct mlx5_core_dev *dev, int profile_idx) int err; memcpy(&dev->profile, &profile[profile_idx], sizeof(dev->profile)); - INIT_LIST_HEAD(&priv->ctx_list); - spin_lock_init(&priv->ctx_lock); lockdep_register_key(&dev->lock_key); mutex_init(&dev->intf_state_mutex); lockdep_set_class(&dev->intf_state_mutex, &dev->lock_key); diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h index c32de987fa71..8536de1073b3 100644 --- a/include/linux/mlx5/driver.h +++ b/include/linux/mlx5/driver.h @@ -606,8 +606,6 @@ struct mlx5_priv { struct list_head pgdir_list; /* end: alloc staff */ - struct list_head ctx_list; - spinlock_t ctx_lock; struct mlx5_adev **adev; int adev_idx; int sw_vhca_id; -- 2.35.3