]> git.karo-electronics.de Git - linux-beck.git/commitdiff
IB/ehca: Move extern declarations from .c files to .h files
authorHoang-Nam Nguyen <hnguyen@de.ibm.com>
Sun, 29 Jul 2007 04:47:53 +0000 (21:47 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 29 Jul 2007 04:47:53 +0000 (21:47 -0700)
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>
drivers/infiniband/hw/ehca/ehca_classes.h
drivers/infiniband/hw/ehca/ehca_mrmw.c
drivers/infiniband/hw/ehca/ehca_pd.c
drivers/infiniband/hw/ehca/hcp_if.c
drivers/infiniband/hw/ehca/ipz_pt_fn.h

index 3725aa8664d9b59360ed608eb2c6ab1c024b3b8c..b5e96030531642c7a95fc6141d1a4228137fa3ac 100644 (file)
@@ -322,6 +322,7 @@ extern int ehca_static_rate;
 extern int ehca_port_act_time;
 extern int ehca_use_hp_mr;
 extern int ehca_scaling_code;
+extern int ehca_mr_largepage;
 
 struct ipzu_queue_resp {
        u32 qe_size;      /* queue entry size */
index eb8d5caf543be388a20ecdc6e5ee82d33db23135..d97eda3e1da0e15f4e131b30cc6c71f270fb912c 100644 (file)
@@ -64,8 +64,6 @@ enum ehca_mr_pgsize {
        EHCA_MR_PGSIZE16M = 0x1000000L
 };
 
-extern int ehca_mr_largepage;
-
 static u32 ehca_encode_hwpage_size(u32 pgsize)
 {
        u32 idx = 0;
index 3dafd7ff36cd52a636ef938dafeaacbc52fd045f..43bcf085fcf21808c11b6075cc6fd4d80e7f926d 100644 (file)
@@ -88,7 +88,6 @@ int ehca_dealloc_pd(struct ib_pd *pd)
        u32 cur_pid = current->tgid;
        struct ehca_pd *my_pd = container_of(pd, struct ehca_pd, ib_pd);
        int i, leftovers = 0;
-       extern struct kmem_cache *small_qp_cache;
        struct ipz_small_queue_page *page, *tmp;
 
        if (my_pd->ib_pd.uobject && my_pd->ib_pd.uobject->context &&
index fdbfebea7d114d1f32db3eabfdfb58d291be9a72..24f454162f2479029255a3b4097a6ad7b0a61c0b 100644 (file)
@@ -758,7 +758,6 @@ u64 hipz_h_register_rpage_mr(const struct ipz_adapter_handle adapter_handle,
                             const u64 logical_address_of_page,
                             const u64 count)
 {
-       extern int ehca_debug_level;
        u64 ret;
 
        if (unlikely(ehca_debug_level >= 2)) {
index c6937a044e8a72e724abb65f01bd5ebe17e706ea..a801274ea337ae08c0a463170bb0688a325d326a 100644 (file)
@@ -54,6 +54,8 @@
 struct ehca_pd;
 struct ipz_small_queue_page;
 
+extern struct kmem_cache *small_qp_cache;
+
 /* struct generic ehca page */
 struct ipz_page {
        u8 entries[EHCA_PAGESIZE];