From 5e75dd9be366d15a094baa1ce0a37d6162dca1b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20=C5=81yszczek?= Date: Thu, 28 Jul 2022 14:23:41 +0200 Subject: [PATCH] boards/stm32wl5/flash: add missing {} to struct init MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When CONFIG_ARCH_BOARD_FLASH_CPU2_PROG_SIZE is bigger than 0, compilation will fail because of missing "{}" in struct initialization. Signed-off-by: Michał Łyszczek --- boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_flash.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_flash.c b/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_flash.c index 5a49924f960..1906580d35b 100644 --- a/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_flash.c +++ b/boards/arm/stm32wl5/nucleo-wl55jc/src/stm32_flash.c @@ -109,10 +109,12 @@ static const struct part_table part_table[] = }, #if CONFIG_ARCH_BOARD_FLASH_CPU2_PROG_SIZE > 0 + { .size = CONFIG_ARCH_BOARD_FLASH_CPU2_PROG_SIZE, .name = "cpu2-progmem", .mnt = NULL, .fs = "rawfs" + }, #endif {