Blob Blame History Raw
From: Saeed Mahameed <saeedm@nvidia.com>
Date: Mon, 18 Apr 2022 12:32:15 -0700
Subject: net/mlx5: sparse: error: context imbalance in 'mlx5_vf_get_core_dev'
Patch-mainline: v5.19-rc1
Git-commit: 4c7c8a6d87a83d5e7ffb9bc166ebf865b9360040
References: jsc#PED-1549

Removing the annotation resolves the issue for some reason.

Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Acked-by: Thomas Bogendoerfer <tbogendoerfer@suse.de>
---
 drivers/net/ethernet/mellanox/mlx5/core/main.c |    2 --
 1 file changed, 2 deletions(-)

--- a/drivers/net/ethernet/mellanox/mlx5/core/main.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/main.c
@@ -1899,7 +1899,6 @@ static struct pci_driver mlx5_core_drive
  * Return: Pointer to the associated mlx5_core_dev or NULL.
  */
 struct mlx5_core_dev *mlx5_vf_get_core_dev(struct pci_dev *pdev)
-			__acquires(&mdev->intf_state_mutex)
 {
 	struct mlx5_core_dev *mdev;
 
@@ -1925,7 +1924,6 @@ EXPORT_SYMBOL(mlx5_vf_get_core_dev);
  * access the mdev any more.
  */
 void mlx5_vf_put_core_dev(struct mlx5_core_dev *mdev)
-			__releases(&mdev->intf_state_mutex)
 {
 	mutex_unlock(&mdev->intf_state_mutex);
 }