aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/nes/nes_hw.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_hw.c
parentce6e74f23d8018f50609f694b6177c139486ebe5 (diff)
downloadkernel_samsung_smdk4412-53978b46cd946ef1dba96ed6d0276ff656dd5d42.zip
kernel_samsung_smdk4412-53978b46cd946ef1dba96ed6d0276ff656dd5d42.tar.gz
kernel_samsung_smdk4412-53978b46cd946ef1dba96ed6d0276ff656dd5d42.tar.bz2
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_hw.c')
-rw-r--r--drivers/infiniband/hw/nes/nes_hw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/infiniband/hw/nes/nes_hw.c b/drivers/infiniband/hw/nes/nes_hw.c
index 8b67207..86acb7d 100644
--- a/drivers/infiniband/hw/nes/nes_hw.c
+++ b/drivers/infiniband/hw/nes/nes_hw.c
@@ -1297,7 +1297,7 @@ int nes_destroy_cqp(struct nes_device *nesdev)
/**
* nes_init_1g_phy
*/
-int nes_init_1g_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index)
+static int nes_init_1g_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index)
{
u32 counter = 0;
u16 phy_data;
@@ -1351,7 +1351,7 @@ int nes_init_1g_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index)
/**
* nes_init_2025_phy
*/
-int nes_init_2025_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index)
+static int nes_init_2025_phy(struct nes_device *nesdev, u8 phy_type, u8 phy_index)
{
u32 temp_phy_data = 0;
u32 temp_phy_data2 = 0;