Skip to content

Commit

Permalink
rds: ib: add the static type to the variables
Browse files Browse the repository at this point in the history
The variables rds_ib_mr_1m_pool_size and rds_ib_mr_8k_pool_size
are used only in the ib.c file. As such, the static type is
added to limit them in this file.

Cc: Joe Jin <joe.jin@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Zhu Yanjun authored and David S. Miller committed Mar 1, 2017
1 parent 5179b26 commit 4f7bfb3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions net/rds/ib.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
#include "ib.h"
#include "ib_mr.h"

unsigned int rds_ib_mr_1m_pool_size = RDS_MR_1M_POOL_SIZE;
unsigned int rds_ib_mr_8k_pool_size = RDS_MR_8K_POOL_SIZE;
static unsigned int rds_ib_mr_1m_pool_size = RDS_MR_1M_POOL_SIZE;
static unsigned int rds_ib_mr_8k_pool_size = RDS_MR_8K_POOL_SIZE;
unsigned int rds_ib_retry_count = RDS_IB_DEFAULT_RETRY_COUNT;

module_param(rds_ib_mr_1m_pool_size, int, 0444);
Expand Down
2 changes: 0 additions & 2 deletions net/rds/ib_mr.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,6 @@ struct rds_ib_mr_pool {
};

extern struct workqueue_struct *rds_ib_mr_wq;
extern unsigned int rds_ib_mr_1m_pool_size;
extern unsigned int rds_ib_mr_8k_pool_size;
extern bool prefer_frmr;

struct rds_ib_mr_pool *rds_ib_create_mr_pool(struct rds_ib_device *rds_dev,
Expand Down

0 comments on commit 4f7bfb3

Please sign in to comment.