fix for RlcUlActvTsk not getting hit
[o-du/l2.git] / src / cm / cm_mblk.c
index 3413ca8..7831b91 100644 (file)
@@ -84,7 +84,7 @@ PRIVATE Void cmAddMemNode ARGS((CmMemListCp *lCp,CmMemList *node));
 */
   
 #ifdef ANSI
-PUBLIC S16 cmAllocEvnt
+S16 cmAllocEvnt
 (
 Size            evntSize,    /* Size of the Event structure */
 Size            maxBlkSize,  /* Chunk Memory size */
@@ -92,7 +92,7 @@ Mem             *sMem,       /* Static memory region and pool */
 Ptr             *ptr         /* Location to place allocated event ptr */
 )
 #else
-PUBLIC S16 cmAllocEvnt (evntSize,maxBlkSize,sMem,ptr)
+S16 cmAllocEvnt (evntSize,maxBlkSize,sMem,ptr)
 Size            evntSize;   /* Size of the Event structure */
 Size            maxBlkSize; /* Memory size requested */
 Mem             *sMem;      /* Static Memory region and pool */
@@ -119,7 +119,7 @@ Ptr             *ptr;       /* Location to place allocated event ptr */
      printf("eventSize [%ld] greater than maxBlkSize [%ld]\n",
            evntSize, maxBlkSize);
 #endif
-     RETVALUE(RFAILED);
+     return RFAILED;
   }
 #endif
  
@@ -134,7 +134,7 @@ Ptr             *ptr;       /* Location to place allocated event ptr */
                (Size)(maxBlkSize + sizeof(CmMemList))) != ROK)
 #endif /* SS_LOCKLESS_MEMORY */
 
-     RETVALUE(RFAILED);
+     return RFAILED;
 
   /* Reset the contents */
   cmMemset((U8 *)allocPtr, (U8 )0, 
@@ -180,7 +180,7 @@ Ptr             *ptr;       /* Location to place allocated event ptr */
   *ptr = (Ptr) ((PTR)allocPtr + sizeof(CmMemList));
   cb->runPtr = ((PTR)(*ptr) + evntSize);
 
-  RETVALUE(ROK);
+  return ROK;
 
 } /* End of cmAllocEvnt */
 
@@ -201,14 +201,14 @@ Ptr             *ptr;       /* Location to place allocated event ptr */
 */
   
 #ifdef ANSI
-PUBLIC Void cmInitMemCp
+Void cmInitMemCp
 (
 CmMemListCp     *memCp,     /* Memory control pointer */
 Size            maxBlkSize, /* Chunk Memory size */
 Mem             *sMem       /* Static memory region and pool */
 )
 #else
-PUBLIC Void cmInitMemCp (memCp,maxBlkSize,sMem)
+Void cmInitMemCp (memCp,maxBlkSize,sMem)
 CmMemListCp     *memCp;     /* Memory control pointer */
 Size            maxBlkSize; /* Memory size requested */
 Mem             *sMem;      /* Static Memory region and pool */
@@ -241,14 +241,14 @@ Mem             *sMem;      /* Static Memory region and pool */
 */
   
 #ifdef ANSI
-PUBLIC S16 cmGetMem
+S16 cmGetMem
 (
 Ptr           memPtr,    /* Pointer to memCp */
 Size          size,      /* Memory size requested */
 Ptr           *allocPtr  /* location to place pointer */
 )
 #else
-PUBLIC S16 cmGetMem (memPtr,size,allocPtr)
+S16 cmGetMem (memPtr,size,allocPtr)
 Ptr          memPtr;    /* Pointer to memCp */
 Size         size;      /* Memory size requested */
 Ptr          *allocPtr; /* location to place pointer */
@@ -289,7 +289,7 @@ Ptr          *allocPtr; /* location to place pointer */
       *allocPtr = (Ptr) cb->runPtr;
       cb->memAllocated += size;
       cb->runPtr += size;
-      RETVALUE(ROK);
+      return ROK;
     }
   }
   
@@ -305,7 +305,7 @@ Ptr          *allocPtr; /* location to place pointer */
               (Data **)&(cb->initPtr),
               (Size)(blkSize + sizeof(CmMemList)) )  != ROK)
 #endif /* SS_LOCKLESS_MEMORY */
-     RETVALUE(RFAILED);
+     return RFAILED;
 
   /* Reset the contents */
   /* Initialise above allocated structure */
@@ -335,7 +335,7 @@ Ptr          *allocPtr; /* location to place pointer */
   *allocPtr = (Ptr) ((PTR)cb->initPtr + sizeof(CmMemList));
   cb->runPtr = ((PTR)(*allocPtr) + size);
 
-  RETVALUE(ROK);   
+  return ROK;   
 
 } /* End of cmGetMem */
 
@@ -360,7 +360,7 @@ Ptr          *allocPtr; /* location to place pointer */
 */
   
 #ifdef ANSI
-PUBLIC S16 cmAllocEvntNoInit
+S16 cmAllocEvntNoInit
 (
 Size            evntSize,    /* Size of the Event structure */
 Size            maxBlkSize,  /* Chunk Memory size */
@@ -368,7 +368,7 @@ Mem             *sMem,       /* Static memory region and pool */
 Ptr             *ptr         /* Location to place allocated event ptr */
 )
 #else
-PUBLIC S16 cmAllocEvntNoInit (evntSize,maxBlkSize,sMem,ptr)
+S16 cmAllocEvntNoInit (evntSize,maxBlkSize,sMem,ptr)
 Size            evntSize;   /* Size of the Event structure */
 Size            maxBlkSize; /* Memory size requested */
 Mem             *sMem;      /* Static Memory region and pool */
@@ -385,7 +385,7 @@ Ptr             *ptr;       /* Location to place allocated event ptr */
 
   /* Validation check */
   if( evntSize > maxBlkSize)
-     RETVALUE(RFAILED);
+     return RFAILED;
  
   /* Allocate memory for the first Memory Chunk */
   /* Allocated memory should be maxBlkSize + sizeof(CmMemList) */
@@ -398,7 +398,7 @@ Ptr             *ptr;       /* Location to place allocated event ptr */
                (Size)(maxBlkSize + sizeof(CmMemList))) != ROK)
 #endif /* SS_LOCKLESS_MEMORY */
 
-     RETVALUE(RFAILED);
+     return RFAILED;
 
   /* Reset the contents */
   cmMemset((U8 *)allocPtr, (U8 )0, 
@@ -444,7 +444,7 @@ Ptr             *ptr;       /* Location to place allocated event ptr */
   *ptr = (Ptr) ((PTR)allocPtr + sizeof(CmMemList));
   cb->runPtr = ((PTR)(*ptr) + evntSize);
 
-  RETVALUE(ROK);
+  return ROK;
 
 } /* End of cmAllocEvntNoInit */
 
@@ -464,14 +464,14 @@ Ptr             *ptr;       /* Location to place allocated event ptr */
 */
   
 #ifdef ANSI
-PUBLIC S16 cmGetMemNoInit
+S16 cmGetMemNoInit
 (
 Ptr           memPtr,    /* Pointer to memCp */
 Size          size,      /* Memory size requested */
 Ptr           *allocPtr  /* location to place pointer */
 )
 #else
-PUBLIC S16 cmGetMemNoInit (memPtr,size,allocPtr)
+S16 cmGetMemNoInit (memPtr,size,allocPtr)
 Ptr          memPtr;    /* Pointer to memCp */
 Size         size;      /* Memory size requested */
 Ptr          *allocPtr; /* location to place pointer */
@@ -514,7 +514,7 @@ Ptr          *allocPtr; /* location to place pointer */
         //   (PTR)(size) );
       cb->memAllocated += size;
       cb->runPtr += size;
-      RETVALUE(ROK);
+      return ROK;
     }
   }
   
@@ -530,7 +530,7 @@ Ptr          *allocPtr; /* location to place pointer */
               (Data **)&(cb->initPtr),
               (Size)(blkSize + sizeof(CmMemList)) )  != ROK)
 #endif /* SS_LOCKLESS_MEMORY */
-     RETVALUE(RFAILED);
+     return RFAILED;
 
   /* Reset the contents */
   /* Initialise above allocated structure */
@@ -559,7 +559,7 @@ Ptr          *allocPtr; /* location to place pointer */
   *allocPtr = (Ptr) ((PTR)cb->initPtr + sizeof(CmMemList));
   cb->runPtr = ((PTR)(*allocPtr) + size);
 
-  RETVALUE(ROK);   
+  return ROK;   
 
 } /* End of cmGetMemNoInit */
 
@@ -584,12 +584,12 @@ Ptr          *allocPtr; /* location to place pointer */
 */
   
 #ifdef ANSI
-PUBLIC Void cmFreeMem
+Void cmFreeMem
 (
 Ptr    memPtr      /* Link List CP */
 )
 #else
-PUBLIC Void cmFreeMem (memPtr)
+Void cmFreeMem (memPtr)
 Ptr    memPtr;     /* Link List CP */
 #endif
 {
@@ -705,13 +705,13 @@ CmMemList   *node;              /* node to be added */
 */
   
 #ifdef ANSI
-PUBLIC Void cmGetMemStatus
+Void cmGetMemStatus
 (
 Ptr             memPtr,    /* Memory control pointer */
 CmMemStatus     *status    /* memory region,pool and status */
 )
 #else
-PUBLIC Void cmGetMemStatus (memPtr,status)
+Void cmGetMemStatus (memPtr,status)
 Ptr             memPtr;   /* Memory control pointer */
 CmMemStatus     *status;  /* memory region,pool and status */
 #endif