projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7d12ce
)
net/mlx4_core: make mlx4_profile const
author
Bhumika Goyal
<
[email protected]
>
Wed, 23 Aug 2017 12:47:39 +0000
(18:17 +0530)
committer
David S. Miller
<
[email protected]
>
Thu, 24 Aug 2017 19:33:31 +0000
(12:33 -0700)
Make these const as they are only used in a copy operation.
Signed-off-by: Bhumika Goyal <
[email protected]
>
Reviewed-by: Tariq Toukan <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/mellanox/mlx4/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlx4/main.c
b/drivers/net/ethernet/mellanox/mlx4/main.c
index 9ea2b0db62290b015dd457c76f14295c67923270..8404e165eca4ace7b68d170eac418f3f8b0ac3a4 100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlx4/main.c
+++ b/
drivers/net/ethernet/mellanox/mlx4/main.c
@@
-121,7
+121,7
@@
static char mlx4_version[] =
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
@@
static struct mlx4_profile default_profile = {
.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,