[openib-general] [PATCH] opensm/osmtest: remove #ifdef __KERNEL__

Sasha Khapyorsky sashak at voltaire.com
Fri Mar 24 12:11:48 PST 2006


Hello,

This removes #ifdef __KERNEL__ code sections from osmtest.

Sasha.


Remove #ifdef __KERNEL__ from osmtest.

Signed-off-by: Sasha Khapyorsky <sahak at voltaire.com>
---

 osm/osmtest/include/osmt_mtl_regular_qp.h |    2 --
 osm/osmtest/osmt_mtl_regular_qp.c         |   17 -----------------
 2 files changed, 0 insertions(+), 19 deletions(-)

diff --git a/osm/osmtest/include/osmt_mtl_regular_qp.h b/osm/osmtest/include/osmt_mtl_regular_qp.h
index f328474..636e5db 100644
--- a/osm/osmtest/include/osmt_mtl_regular_qp.h
+++ b/osm/osmtest/include/osmt_mtl_regular_qp.h
@@ -174,7 +174,6 @@ int osmt_mtl_mad_post_recv_bufs(
 
 
 /* Poll given CQ for completion max_poll times (POLL_SLEEP [usec] delays). result in wc_desc_p. */
-#ifndef __KERNEL__
 VAPI_ret_t osmt_mtl_mad_poll4cqe(
     VAPI_hca_hndl_t hca,        /*handle for HCA*/
     VAPI_cq_hndl_t cq,          /*handle for Completion Queue - Rcv/Send  */ 
@@ -183,7 +182,6 @@ VAPI_ret_t osmt_mtl_mad_poll4cqe(
     u_int32_t poll_sleep,        /*timeout for each polling    */
 	 VAPI_ud_av_hndl_t *avh_p   /* address vectopr handle to cleanup */
 	 );
-#endif
 
 
 #endif
diff --git a/osm/osmtest/osmt_mtl_regular_qp.c b/osm/osmtest/osmt_mtl_regular_qp.c
index ca393d4..2fd4f9d 100644
--- a/osm/osmtest/osmt_mtl_regular_qp.c
+++ b/osm/osmtest/osmt_mtl_regular_qp.c
@@ -402,7 +402,6 @@ int osmt_mtl_mad_post_recv_bufs(osmt_mtl
 }
 
 
-#ifndef __KERNEL__
 VAPI_ret_t osmt_mtl_mad_poll4cqe(VAPI_hca_hndl_t hca,VAPI_cq_hndl_t cq,
 											VAPI_wc_desc_t *wc_desc_p,
 											u_int32_t max_poll, u_int32_t poll_sleep,
@@ -444,21 +443,5 @@ VAPI_ret_t osmt_mtl_mad_poll4cqe(VAPI_hc
 
   return VAPI_OK;
 }
-#endif
-
-
-
-#ifdef __KERNEL__
-int init_module(void)
-{
-  MTL_TRACE1("mad module loaded.\n");
-  return(0);
-}
-
-void cleanup_module(void)
-{
-  MTL_TRACE1("mad module unloaded.\n");
-}
-#endif
 
 #endif /*  OSM_VENDOR_INTF_MTL */



More information about the general mailing list