This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 0a71cbe5422d10754c2a41fe134449bed9123af5 Author: wangmingrong1 <wangmingro...@xiaomi.com> AuthorDate: Tue Jun 10 18:10:45 2025 +0800 fix kasan_bypss compile unused error Signed-off-by: wangmingrong1 <wangmingro...@xiaomi.com> --- include/nuttx/mm/kasan.h | 2 +- mm/mm_heap/mm_malloc_size.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/nuttx/mm/kasan.h b/include/nuttx/mm/kasan.h index 9cf6fb4820..a518ea450f 100644 --- a/include/nuttx/mm/kasan.h +++ b/include/nuttx/mm/kasan.h @@ -48,7 +48,7 @@ # define kasan_stop() # define kasan_debugpoint(t,a,s) 0 # define kasan_init_early() -# define kasan_bypass(state) false +# define kasan_bypass(state) ((void)state, state) #else # define kasan_init_early() kasan_stop() diff --git a/mm/mm_heap/mm_malloc_size.c b/mm/mm_heap/mm_malloc_size.c index 544b0e306e..895f11ee2b 100644 --- a/mm/mm_heap/mm_malloc_size.c +++ b/mm/mm_heap/mm_malloc_size.c @@ -75,6 +75,5 @@ size_t mm_malloc_size(FAR struct mm_heap_s *heap, FAR void *mem) size = MM_SIZEOF_NODE(node) - MM_ALLOCNODE_OVERHEAD; kasan_bypass(flag); - UNUSED(flag); return size; }