[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/trunk@278 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

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

index f5663a5..2476ce4 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 97e4e38..9fb3297 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 b367290..5ca3648 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