Skip to content

Commit e02b99b

Browse files
Shkiperonliviuchircu
authored andcommitted
Fix HP_MALLOC build flag - DBG_MALLOC is not necessary for it
Style fix
1 parent e65173f commit e02b99b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mem/shm_mem.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ inline static void shm_threshold_check(void)
301301
lock_release(mem_lock); \
302302
} while (0)
303303
#endif
304+
extern unsigned long long *shm_hash_usage;
304305
#else
305306
#define shm_lock() lock_get(mem_lock)
306307
#define shm_unlock() lock_release(mem_lock)
@@ -629,8 +630,6 @@ inline static void _shm_free_bulk(void *ptr,
629630
#define shm_free_bulk( _ptr ) _shm_free_bulk( (_ptr), \
630631
__FILE__, __FUNCTION__, __LINE__ )
631632

632-
extern unsigned long long *shm_hash_usage;
633-
634633
#else /*DBG_MALLOC*/
635634

636635
#define shm_malloc_func shm_malloc

0 commit comments

Comments
 (0)