diff options
author | Zhu Yanjun <yanjun.zhu@oracle.com> | 2017-03-13 01:43:47 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-13 23:20:05 -0700 |
commit | edd08f96db4f06beb09acdd71e00b07a1f6c13ca (patch) | |
tree | 9cd3c3330ac733bddab6afba1e43ac6bce5edf47 /net/rds/ib_fmr.c | |
parent | ea69c883644a5c574ab518ae86ca3ce58e101072 (diff) | |
download | linux-rpi-edd08f96db4f06beb09acdd71e00b07a1f6c13ca.tar.gz linux-rpi-edd08f96db4f06beb09acdd71e00b07a1f6c13ca.tar.bz2 linux-rpi-edd08f96db4f06beb09acdd71e00b07a1f6c13ca.zip |
rds: ib: add the static type to the function
The function rds_ib_map_fmr is used only in the ib_fmr.c
file. As such, the static type is added to limit it in this file.
Cc: Joe Jin <joe.jin@oracle.com>
Cc: Junxiao Bi <junxiao.bi@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/rds/ib_fmr.c')
-rw-r--r-- | net/rds/ib_fmr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/rds/ib_fmr.c b/net/rds/ib_fmr.c index 249ae1c783cb..c936b0d47693 100644 --- a/net/rds/ib_fmr.c +++ b/net/rds/ib_fmr.c @@ -84,8 +84,9 @@ out_no_cigar: return ERR_PTR(err); } -int rds_ib_map_fmr(struct rds_ib_device *rds_ibdev, struct rds_ib_mr *ibmr, - struct scatterlist *sg, unsigned int nents) +static int rds_ib_map_fmr(struct rds_ib_device *rds_ibdev, + struct rds_ib_mr *ibmr, struct scatterlist *sg, + unsigned int nents) { struct ib_device *dev = rds_ibdev->dev; struct rds_ib_fmr *fmr = &ibmr->u.fmr; |