Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1718333 > unrolled thread
| Started by | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| First post | 2017-08-23 15:00 +0200 |
| Last post | 2017-08-24 21:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] net/mlx5e: make mlx5e_profile const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-23 15:00 +0200
Re: [PATCH] net/mlx5e: make mlx5e_profile const David Miller <davem@davemloft.net> - 2017-08-24 21:40 +0200
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-23 15:00 +0200 |
| Subject | [PATCH] net/mlx5e: make mlx5e_profile const |
| Message-ID | <uhDqh-DY-7@gated-at.bofh.it> |
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>
---
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
index 45c088c..45e03c4 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,
--
1.9.1
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2017-08-24 21:40 +0200 |
| Message-ID | <ui68X-2ff-21@gated-at.bofh.it> |
| In reply to | #1718333 |
From: Bhumika Goyal <bhumirks@gmail.com> Date: Wed, 23 Aug 2017 18:22:01 +0530 > 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> Applied to net-next.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web