summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_verbs.c
diff options
context:
space:
mode:
authorRoland Dreier <rolandd@cisco.com>2010-04-21 15:58:28 -0700
committerRoland Dreier <rolandd@cisco.com>2010-04-21 15:58:28 -0700
commit53978b46cd946ef1dba96ed6d0276ff656dd5d42 (patch)
tree46a30d962a321a0580962a9e3d750621728a05a7 /drivers/infiniband/hw/nes/nes_verbs.c
parentce6e74f23d8018f50609f694b6177c139486ebe5 (diff)
downloadlinux-53978b46cd946ef1dba96ed6d0276ff656dd5d42.tar.gz
linux-53978b46cd946ef1dba96ed6d0276ff656dd5d42.tar.bz2
linux-53978b46cd946ef1dba96ed6d0276ff656dd5d42.zip
RDMA/nes: Make unnecessarily global functions static
This allows the compiler to do a bit better; on my x86-64 build: add/remove: 0/2 grow/shrink: 1/0 up/down: 2288/-2365 (-77) function old new delta nes_init_phy 273 2561 +2288 nes_init_1g_phy 469 - -469 nes_init_2025_phy 1896 - -1896 Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/nes/nes_verbs.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/nes/nes_verbs.c b/drivers/infiniband/hw/nes/nes_verbs.c
index e54f312e4bdc..925e1f2d1d55 100644
--- a/drivers/infiniband/hw/nes/nes_verbs.c
+++ b/drivers/infiniband/hw/nes/nes_verbs.c
@@ -374,7 +374,7 @@ static int alloc_fast_reg_mr(struct nes_device *nesdev, struct nes_pd *nespd,
/*
* nes_alloc_fast_reg_mr
*/
-struct ib_mr *nes_alloc_fast_reg_mr(struct ib_pd *ibpd, int max_page_list_len)
+static struct ib_mr *nes_alloc_fast_reg_mr(struct ib_pd *ibpd, int max_page_list_len)
{
struct nes_pd *nespd = to_nespd(ibpd);
struct nes_vnic *nesvnic = to_nesvnic(ibpd->device);