From b67c0f423d379d020cfb0ffc583ea53d82540fe1 Mon Sep 17 00:00:00 2001 From: Yassine El Aissaoui Date: Mon, 27 Jan 2025 10:25:19 +0100 Subject: [PATCH] soc: nxp: rw: Fix nxp_nbu_init implicit definition warning nxp_nbu_init extern definition is under CONFIG_NXP_RW6XX_BOOT_HEADER and this produces an implicite definition warning when the Kconfig is disabled. This is the case when both BLE Kconfig and MCUboot bootloader Kconfig are enabled. Signed-off-by: Yassine El Aissaoui --- soc/nxp/rw/soc.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/soc/nxp/rw/soc.c b/soc/nxp/rw/soc.c index 0ff095a5619..a7e3739f579 100644 --- a/soc/nxp/rw/soc.c +++ b/soc/nxp/rw/soc.c @@ -1,5 +1,5 @@ /* - * Copyright 2022-2024 NXP + * Copyright 2022-2025 NXP * * SPDX-License-Identifier: Apache-2.0 */ @@ -20,6 +20,8 @@ #include "soc.h" #include "flexspi_clock_setup.h" #include "fsl_ocotp.h" + +extern void nxp_nbu_init(void); #ifdef CONFIG_NXP_RW6XX_BOOT_HEADER extern char z_main_stack[]; extern char _flash_used[]; @@ -36,7 +38,6 @@ extern void z_arm_debug_monitor(void); extern void z_arm_pendsv(void); extern void sys_clock_isr(void); extern void z_arm_exc_spurious(void); -extern void nxp_nbu_init(void); __imx_boot_ivt_section void (*const image_vector_table[])(void) = { (void (*)())(z_main_stack + CONFIG_MAIN_STACK_SIZE), /* 0x00 */