diff options
author | Hoang-Nam Nguyen <hnguyen@de.ibm.com> | 2007-07-29 00:47:53 -0400 |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2007-07-29 00:47:53 -0400 |
commit | 1655fc2e12ed7d208403c043428291b83aa833bb (patch) | |
tree | 7773ef9241b5afdb06d220ec531f2fb4420a24af /drivers/infiniband | |
parent | e0f5d99e8dec3f157d3fff96c1e6a8b4abd24050 (diff) |
IB/ehca: Move extern declarations from .c files to .h files
Make sure declarations stay in sync with definitions by keeping all
extern declarations in common .h files.
Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_classes.h | 1 | ||||
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_mrmw.c | 2 | ||||
-rw-r--r-- | drivers/infiniband/hw/ehca/ehca_pd.c | 1 | ||||
-rw-r--r-- | drivers/infiniband/hw/ehca/hcp_if.c | 1 | ||||
-rw-r--r-- | drivers/infiniband/hw/ehca/ipz_pt_fn.h | 2 |
5 files changed, 3 insertions, 4 deletions
diff --git a/drivers/infiniband/hw/ehca/ehca_classes.h b/drivers/infiniband/hw/ehca/ehca_classes.h index 3725aa8664d9..b5e960305316 100644 --- a/drivers/infiniband/hw/ehca/ehca_classes.h +++ b/drivers/infiniband/hw/ehca/ehca_classes.h | |||
@@ -322,6 +322,7 @@ extern int ehca_static_rate; | |||
322 | extern int ehca_port_act_time; | 322 | extern int ehca_port_act_time; |
323 | extern int ehca_use_hp_mr; | 323 | extern int ehca_use_hp_mr; |
324 | extern int ehca_scaling_code; | 324 | extern int ehca_scaling_code; |
325 | extern int ehca_mr_largepage; | ||
325 | 326 | ||
326 | struct ipzu_queue_resp { | 327 | struct ipzu_queue_resp { |
327 | u32 qe_size; /* queue entry size */ | 328 | u32 qe_size; /* queue entry size */ |
diff --git a/drivers/infiniband/hw/ehca/ehca_mrmw.c b/drivers/infiniband/hw/ehca/ehca_mrmw.c index eb8d5caf543b..d97eda3e1da0 100644 --- a/drivers/infiniband/hw/ehca/ehca_mrmw.c +++ b/drivers/infiniband/hw/ehca/ehca_mrmw.c | |||
@@ -64,8 +64,6 @@ enum ehca_mr_pgsize { | |||
64 | EHCA_MR_PGSIZE16M = 0x1000000L | 64 | EHCA_MR_PGSIZE16M = 0x1000000L |
65 | }; | 65 | }; |
66 | 66 | ||
67 | extern int ehca_mr_largepage; | ||
68 | |||
69 | static u32 ehca_encode_hwpage_size(u32 pgsize) | 67 | static u32 ehca_encode_hwpage_size(u32 pgsize) |
70 | { | 68 | { |
71 | u32 idx = 0; | 69 | u32 idx = 0; |
diff --git a/drivers/infiniband/hw/ehca/ehca_pd.c b/drivers/infiniband/hw/ehca/ehca_pd.c index 3dafd7ff36cd..43bcf085fcf2 100644 --- a/drivers/infiniband/hw/ehca/ehca_pd.c +++ b/drivers/infiniband/hw/ehca/ehca_pd.c | |||
@@ -88,7 +88,6 @@ int ehca_dealloc_pd(struct ib_pd *pd) | |||
88 | u32 cur_pid = current->tgid; | 88 | u32 cur_pid = current->tgid; |
89 | struct ehca_pd *my_pd = container_of(pd, struct ehca_pd, ib_pd); | 89 | struct ehca_pd *my_pd = container_of(pd, struct ehca_pd, ib_pd); |
90 | int i, leftovers = 0; | 90 | int i, leftovers = 0; |
91 | extern struct kmem_cache *small_qp_cache; | ||
92 | struct ipz_small_queue_page *page, *tmp; | 91 | struct ipz_small_queue_page *page, *tmp; |
93 | 92 | ||
94 | if (my_pd->ib_pd.uobject && my_pd->ib_pd.uobject->context && | 93 | if (my_pd->ib_pd.uobject && my_pd->ib_pd.uobject->context && |
diff --git a/drivers/infiniband/hw/ehca/hcp_if.c b/drivers/infiniband/hw/ehca/hcp_if.c index fdbfebea7d11..24f454162f24 100644 --- a/drivers/infiniband/hw/ehca/hcp_if.c +++ b/drivers/infiniband/hw/ehca/hcp_if.c | |||
@@ -758,7 +758,6 @@ u64 hipz_h_register_rpage_mr(const struct ipz_adapter_handle adapter_handle, | |||
758 | const u64 logical_address_of_page, | 758 | const u64 logical_address_of_page, |
759 | const u64 count) | 759 | const u64 count) |
760 | { | 760 | { |
761 | extern int ehca_debug_level; | ||
762 | u64 ret; | 761 | u64 ret; |
763 | 762 | ||
764 | if (unlikely(ehca_debug_level >= 2)) { | 763 | if (unlikely(ehca_debug_level >= 2)) { |
diff --git a/drivers/infiniband/hw/ehca/ipz_pt_fn.h b/drivers/infiniband/hw/ehca/ipz_pt_fn.h index c6937a044e8a..a801274ea337 100644 --- a/drivers/infiniband/hw/ehca/ipz_pt_fn.h +++ b/drivers/infiniband/hw/ehca/ipz_pt_fn.h | |||
@@ -54,6 +54,8 @@ | |||
54 | struct ehca_pd; | 54 | struct ehca_pd; |
55 | struct ipz_small_queue_page; | 55 | struct ipz_small_queue_page; |
56 | 56 | ||
57 | extern struct kmem_cache *small_qp_cache; | ||
58 | |||
57 | /* struct generic ehca page */ | 59 | /* struct generic ehca page */ |
58 | struct ipz_page { | 60 | struct ipz_page { |
59 | u8 entries[EHCA_PAGESIZE]; | 61 | u8 entries[EHCA_PAGESIZE]; |