Patch "net/mlx5: Make API mlx5_core_is_ecpf accept const pointer" has been added to the 5.4-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net/mlx5: Make API mlx5_core_is_ecpf accept const pointer

to the 5.4-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-mlx5-make-api-mlx5_core_is_ecpf-accept-const-poi.patch
and it can be found in the queue-5.4 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 4d7aefbcba7ce77bf7e359935708c581d72919d7
Author: Parav Pandit <parav@xxxxxxxxxx>
Date:   Fri Nov 20 15:03:36 2020 -0800

    net/mlx5: Make API mlx5_core_is_ecpf accept const pointer
    
    [ Upstream commit 3b1e58aa832ed537289be6a51a2015309688a90c ]
    
    Subsequent patch implements helper API which has mlx5_core_dev
    as const pointer, make its caller API too const *.
    
    Signed-off-by: Parav Pandit <parav@xxxxxxxxxx>
    Reviewed-by: Bodong Wang <bodong@xxxxxxxxxx>
    Signed-off-by: Saeed Mahameed <saeedm@xxxxxxxxxx>
    Stable-dep-of: e05feab22fd7 ("RDMA/mlx5: Enforce same type port association for multiport RoCE")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/include/linux/mlx5/driver.h b/include/linux/mlx5/driver.h
index 9744d9a2d71e..882197037654 100644
--- a/include/linux/mlx5/driver.h
+++ b/include/linux/mlx5/driver.h
@@ -1137,7 +1137,7 @@ static inline bool mlx5_core_is_vf(const struct mlx5_core_dev *dev)
 	return dev->coredev_type == MLX5_COREDEV_VF;
 }
 
-static inline bool mlx5_core_is_ecpf(struct mlx5_core_dev *dev)
+static inline bool mlx5_core_is_ecpf(const struct mlx5_core_dev *dev)
 {
 	return dev->caps.embedded_cpu;
 }




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux