Skip to contentSkip to conversation

arm64: dts: amlogic: meson-s4-aq222: fix waring for leading 0s

PATCH In review Anders Roxell 2 participants 2 messages Jan 13, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: dts: amlogic: meson-s4-aq222: fix waring for leading 0s

When building allmodconfig the following waring shows up:

arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts:21.18-24.4: Warning (unit_address_format): /memory@00000000: unit name should not have leading 0s

Fixing the waring by dropping all the '0' except one.

Fixes 1c1475389af0 ("arm64: dts: add support for S4 based Amlogic AQ222")
---
 arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts +1 -1
index a942d7e06d6e..8ffbcb2b1ac5 100644
@@ -18,7 +18,7 @@ aliases {
 		serial0 = &uart_B;
 	};
 
-	memory@00000000 {
+	memory@0 {
 		device_type = "memory";
 		reg = <0x0 0x0 0x0 0x40000000>;
 	};
Signature · 1 line
2.34.1
#1 lore raw

Hi,

Quoted 18 lines · Anders Roxell

When building allmodconfig the following waring shows up:

arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts:21.18-24.4: Warning (unit_address_format): /memory@00000000: unit name should not have leading 0s

Fixing the waring by dropping all the '0' except one.

Fixes 1c1475389af0 ("arm64: dts: add support for S4 based Amlogic AQ222")
---
 arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts +0 -0
index a942d7e06d6e..8ffbcb2b1ac5 100644

arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts aliases { · line 24

Quoted 8 lines
arch/arm64/boot/dts/amlogic/meson-s4-s805x2-aq222.dts +1 -1
@@ -18,7 +18,7 @@ aliases {
 		serial0 = &uart_B;
 	};
 
-	memory@00000000 {
+	memory@0 {
 		device_type = "memory";
 		reg = <0x0 0x0 0x0 0x40000000>;
 	};

Thanks, I also noticed and fixed in the commit directly, it should be fixed on next -next

Neil