]> git.openfabrics.org - ~shefty/rdma-win.git/commitdiff
[OPENSM] 1. AL_INLINE in Opensm maped to static inline to solve linker function override
authoreitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 4 Apr 2006 08:51:02 +0000 (08:51 +0000)
committereitan <eitan@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 4 Apr 2006 08:51:02 +0000 (08:51 +0000)
2. ibtrapgen sm_lid bug

git-svn-id: svn://openib.tc.cornell.edu/gen1@278 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

trunk/ulp/opensm/user/ibtrapgen/ibtrapgen.c
trunk/ulp/opensm/user/include/iba/ib_types.h
trunk/ulp/opensm/user/include/iba/ib_types_extended.h

index f5663a54d49f99189d07f4a91380a8ced86f38ae..2476ce4d5f2286731bcc620c74cba1ae8429d012 100644 (file)
@@ -356,8 +356,8 @@ ibtrapgen_run( IN ibtrapgen_t * const p_ibtrapgen )
            p_ibtrapgen->p_opt->lid,
            p_ibtrapgen->p_opt->number );
   
-  printf("-V- SM lid is : 0x%04X\n",p_ibtrapgen->p_opt->sm_lid);
-  mad_addr.dest_lid = cl_ntoh16(p_ibtrapgen->p_opt->sm_lid);
+  printf("-V- SM lid is : 0x%04X\n",cl_ntoh16(p_ibtrapgen->p_opt->sm_lid));
+  mad_addr.dest_lid = (p_ibtrapgen->p_opt->sm_lid);
   /* ??? - what is path_bits? What should be the value here?? */
   mad_addr.path_bits = 0;
   /* ??? - what is static_rate? What should be the value here?? */
index 97e4e38e805fe716dd1af26e27faaea7537300e7..9fb329764da54837a191969de21dd6c57de4cb3c 100644 (file)
@@ -64,7 +64,7 @@ BEGIN_C_DECLS
         #define AL_INLINE      static inline
     #else
         #define AL_API         __stdcall
-        #define AL_INLINE      AL_EXPORT inline
+        #define AL_INLINE      static inline
         /* Defined for some unique access function that are defined only in osm ib_types */
         #define OSM_INLINE static inline
     #endif     /* CL_KERNEL */
index b36729021a18fcf4acb82c702c882bb68b80247a..5ca36487a9bcdba3bd9a12f646ad9ebaf860a1be 100644 (file)
@@ -48,7 +48,7 @@
                #define AL_INLINE       static inline
        #else
                #define AL_API          __stdcall
-                #define AL_INLINE      AL_EXPORT inline
+               #define AL_INLINE       static  inline
        #endif  /* CL_KERNEL */
 #else
        #define AL_EXPORT       extern