fix: 规范整改

Signed-off-by: zhushengle <zhushengle@huawei.com>
Change-Id: I7be78853291d53636fd199104b4c72bbab222bcd
This commit is contained in:
zhushengle
2022-03-19 15:26:10 +08:00
parent a42ba7aed6
commit a09d4882c4
42 changed files with 46 additions and 77 deletions

View File

@@ -498,7 +498,7 @@ static inline UINT64 __atomic_load_8(const volatile void *mem, int model)
ret = *(UINT64 *)mem;
free_lock (memP, model);
return ret;
}
}
static inline void __atomic_store_8(volatile void *mem, UINT64 val, int model)
{
@@ -511,7 +511,7 @@ static inline void __atomic_store_8(volatile void *mem, UINT64 val, int model)
static inline UINT64 __atomic_exchange_8(volatile void *mem, UINT64 val, int model)
{
UINT64 ret;
void *memP = (void *)mem;
get_lock (memP, model);
ret = *(UINT64 *)mem;

View File

@@ -248,7 +248,7 @@ LITE_OS_SEC_ALW_INLINE STATIC_INLINE BOOL LOS_ListEmpty(LOS_DL_LIST *node)
* <ul><li>los_list.h: the header file that contains the API declaration.</li></ul>
* @see
*/
#define LOS_OFF_SET_OF(type, member) ((UINT32)&(((type *)0)->member)) /*lint -e(413) */
#define LOS_OFF_SET_OF(type, member) ((UINT32)&(((type *)0)->member))
/**
* @ingroup los_list