]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: stm32: Use __section(".data") with dot in the section name on DHSOM
authorMarek Vasut <marex@denx.de>
Thu, 4 May 2023 19:52:08 +0000 (21:52 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Fri, 16 Jun 2023 09:15:01 +0000 (11:15 +0200)
The correct specifier of the section is ".data" and not "data",
use the former to place the variables in ".data" section.

Fixes: 731fd50e27f ("ARM: stm32: Implement board coding on AV96")
Fixes: 92ca0f7446c ("ARM: dts: stm32: Synchronize DDR setttings on DH SoMs")
Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
board/dhelectronics/dh_stm32mp1/board.c

index 8d8104ad4bd3f33ff2e5a174d1d2533e62c15093..f9cfabe2420950dcff46e79ad4bbf5796dac5f64 100644 (file)
@@ -184,9 +184,9 @@ int checkboard(void)
 }
 
 #ifdef CONFIG_BOARD_EARLY_INIT_F
-static u8 brdcode __section("data");
-static u8 ddr3code __section("data");
-static u8 somcode __section("data");
+static u8 brdcode __section(".data");
+static u8 ddr3code __section(".data");
+static u8 somcode __section(".data");
 static u32 opp_voltage_mv __section(".data");
 
 static void board_get_coding_straps(void)