Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1718325 > unrolled thread
| Started by | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| First post | 2017-08-23 14:50 +0200 |
| Last post | 2017-08-24 21:40 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH] net/mlx4_core: make mlx4_profile const Bhumika Goyal <bhumirks@gmail.com> - 2017-08-23 14:50 +0200
Re: [PATCH] net/mlx4_core: make mlx4_profile const David Miller <davem@davemloft.net> - 2017-08-24 21:40 +0200
| From | Bhumika Goyal <bhumirks@gmail.com> |
|---|---|
| Date | 2017-08-23 14:50 +0200 |
| Subject | [PATCH] net/mlx4_core: make mlx4_profile const |
| Message-ID | <uhDgB-Aw-7@gated-at.bofh.it> |
Make these const as they are only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
drivers/net/ethernet/mellanox/mlx4/main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/mellanox/mlx4/main.c b/drivers/net/ethernet/mellanox/mlx4/main.c
index 541ce9e..43fb2eb 100644
--- a/drivers/net/ethernet/mellanox/mlx4/main.c
+++ b/drivers/net/ethernet/mellanox/mlx4/main.c
@@ -121,7 +121,7 @@
DRV_NAME ": Mellanox ConnectX core driver v"
DRV_VERSION "\n";
-static struct mlx4_profile default_profile = {
+static const struct mlx4_profile default_profile = {
.num_qp = 1 << 18,
.num_srq = 1 << 16,
.rdmarc_per_qp = 1 << 4,
@@ -131,7 +131,7 @@
.num_mtt = 1 << 20, /* It is really num mtt segements */
};
-static struct mlx4_profile low_mem_profile = {
+static const struct mlx4_profile low_mem_profile = {
.num_qp = 1 << 17,
.num_srq = 1 << 6,
.rdmarc_per_qp = 1 << 4,
--
1.9.1
[toc] | [next] | [standalone]
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2017-08-24 21:40 +0200 |
| Message-ID | <ui68W-2ff-5@gated-at.bofh.it> |
| In reply to | #1718325 |
From: Bhumika Goyal <bhumirks@gmail.com> Date: Wed, 23 Aug 2017 18:17:39 +0530 > Make these const as they are only used in a copy operation. > > Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Applied to net-next.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web