diff options
author | Roland Dreier <rolandd@cisco.com> | 2008-04-17 00:01:10 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2008-04-17 00:01:10 -0400 |
commit | e8e91f6b4dc1179a70b0d21241b769c0ebfaa129 (patch) | |
tree | 81b957526d8a2af444073a4d76c91c2ee4aeaeae /drivers/infiniband/hw/ehca/ehca_mrmw.c | |
parent | 1a855fbfb65e0b7b5cce00d7c6a61185ed765edf (diff) |
IB/ehca: Make symbols used only in a single source file static
Allow the compiler to optimize better and generate smaller code:
add/remove: 0/6 grow/shrink: 2/0 up/down: 1528/-1864 (-336)
function old new delta
.ehca_set_pagebuf 1344 2172 +828
.ehca_probe 2312 3012 +700
ehca_set_pagebuf_phys 24 - -24
ehca_set_pagebuf_fmr 24 - -24
ehca_init_device 24 - -24
.ehca_set_pagebuf_fmr 480 - -480
.ehca_set_pagebuf_phys 512 - -512
.ehca_init_device 800 - -800
Also this fixes warnings like:
drivers/infiniband/hw/ehca/ehca_mrmw.c:2015:5: warning: symbol 'ehca_set_pagebuf_fmr' was not declared. Should it be static?
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/hw/ehca/ehca_mrmw.c')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_mrmw.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_mrmw.c b/drivers/infiniband/hw/ehca/ehca_mrmw.c index e239bbf54da1..5e99c45493c1 100644 --- a/drivers/infiniband/hw/ehca/ehca_mrmw.c +++ b/drivers/infiniband/hw/ehca/ehca_mrmw.c | |||
@@ -1952,9 +1952,8 @@ next_kpage: | |||
1952 | return ret; | 1952 | return ret; |
1953 | } | 1953 | } |
1954 | 1954 | ||
1955 | int ehca_set_pagebuf_phys(struct ehca_mr_pginfo *pginfo, | 1955 | static int ehca_set_pagebuf_phys(struct ehca_mr_pginfo *pginfo, |
1956 | u32 number, | 1956 | u32 number, u64 *kpage) |
1957 | u64 *kpage) | ||
1958 | { | 1957 | { |
1959 | int ret = 0; | 1958 | int ret = 0; |
1960 | struct ib_phys_buf *pbuf; | 1959 | struct ib_phys_buf *pbuf; |
@@ -2012,9 +2011,8 @@ int ehca_set_pagebuf_phys(struct ehca_mr_pginfo *pginfo, | |||
2012 | return ret; | 2011 | return ret; |
2013 | } | 2012 | } |
2014 | 2013 | ||
2015 | int ehca_set_pagebuf_fmr(struct ehca_mr_pginfo *pginfo, | 2014 | static int ehca_set_pagebuf_fmr(struct ehca_mr_pginfo *pginfo, |
2016 | u32 number, | 2015 | u32 number, u64 *kpage) |
2017 | u64 *kpage) | ||
2018 | { | 2016 | { |
2019 | int ret = 0; | 2017 | int ret = 0; |
2020 | u64 *fmrlist; | 2018 | u64 *fmrlist; |