diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-23 18:22:01 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-08-24 12:33:31 -0700 |
commit | 39a7e5892418514db114ea4842d7d88aee6a61b8 (patch) | |
tree | 15d73c7057959f1ba18e48ae6a58fa2b8ab29114 | |
parent | 3f2c5fb2d81656e79cdfbe78a5790c35993ed1ff (diff) | |
download | linux-39a7e5892418514db114ea4842d7d88aee6a61b8.tar.gz linux-39a7e5892418514db114ea4842d7d88aee6a61b8.tar.bz2 linux-39a7e5892418514db114ea4842d7d88aee6a61b8.zip |
net/mlx5e: make mlx5e_profile const
Make this const as it is only passed as an argument to the function
mlx5e_create_netdev and the corresponding argument is of type const.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index 45c088c10ee1..45e03c427faf 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -924,7 +924,7 @@ static int mlx5e_get_rep_max_num_channels(struct mlx5_core_dev *mdev) return MLX5E_PORT_REPRESENTOR_NCH; } -static struct mlx5e_profile mlx5e_rep_profile = { +static const struct mlx5e_profile mlx5e_rep_profile = { .init = mlx5e_init_rep, .init_rx = mlx5e_init_rep_rx, .cleanup_rx = mlx5e_cleanup_rep_rx, |