From 60f53d16bf4ab84aeb16179235d511cf5d99a7be Mon Sep 17 00:00:00 2001 From: MaxCrazy1101 <35657483+MaxCrazy1101@users.noreply.github.com> Date: Thu, 9 May 2024 16:16:39 +0800 Subject: [PATCH] fix compile error with gcc13 --- kernel/bsp/drivers/npu/aw_nna_galcore/os/gc_hal_kernel_linux.h | 2 +- .../bsp/drivers/npu/aw_nna_vip/linux/gc_vip_kernel_allocator.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/bsp/drivers/npu/aw_nna_galcore/os/gc_hal_kernel_linux.h b/kernel/bsp/drivers/npu/aw_nna_galcore/os/gc_hal_kernel_linux.h index ca75aa2668..c90d61a11e 100644 --- a/kernel/bsp/drivers/npu/aw_nna_galcore/os/gc_hal_kernel_linux.h +++ b/kernel/bsp/drivers/npu/aw_nna_galcore/os/gc_hal_kernel_linux.h @@ -337,7 +337,7 @@ gceSTATUS _ConvertLogical2Physical(gckOS Os, gctPOINTER Logical, gctUINT32 ProcessID, PLINUX_MDL Mdl, gctPHYS_ADDR_T *Physical); -gctBOOL +gceSTATUS _QuerySignal(gckOS Os, gctSIGNAL Signal); static inline gctINT diff --git a/kernel/bsp/drivers/npu/aw_nna_vip/linux/gc_vip_kernel_allocator.c b/kernel/bsp/drivers/npu/aw_nna_vip/linux/gc_vip_kernel_allocator.c index f49a827147..708a9ddf64 100644 --- a/kernel/bsp/drivers/npu/aw_nna_vip/linux/gc_vip_kernel_allocator.c +++ b/kernel/bsp/drivers/npu/aw_nna_vip/linux/gc_vip_kernel_allocator.c @@ -120,7 +120,7 @@ static vip_status_e gckvip_map_user( gckvip_dyn_allocate_node_t *node, struct page **pages, vip_uint32_t num_pages, - vip_uint32_t alloc_flag, + gckvip_video_mem_alloc_flag_e alloc_flag, void **logical );