Skip to contentSkip to conversation

ARM: dts: skeleton: Fix build warning with W=1

PATCH New Fabio Estevam 3 participants 7 messages Aug 14, 2016 – Aug 15, 2016

Subsystems (3)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

PATCH 1/3 ARM: dts: skeleton: Fix build warning with W=1

From: Fabio Estevam <[email protected]>

Fix the following build warnings with W=1:

Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name

---
 arch/arm/boot/dts/skeleton.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/skeleton.dtsi +1 -1
index b41d241..a20da0a 100644
@@ -9,5 +9,5 @@
 	#size-cells = <1>;
 	chosen { };
 	aliases { };
-	memory { device_type = "memory"; reg = <0 0>; };
+	memory at 0 { device_type = "memory"; reg = <0 0>; };
 };
Signature · 1 line
1.9.1
author reviewer
#1 lore raw

PATCH 2/3 ARM: dts: imx23: Fix build warnings with W=1

From: Fabio Estevam <[email protected]>

Fix the following build warnings with W=1:

Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name

While at it, also pass the 'device_type' property as recommended by the ePAPR specification.

---
 arch/arm/boot/dts/imx23-evk.dts           | 3 ++-
 arch/arm/boot/dts/imx23-olinuxino.dts     | 3 ++-
 arch/arm/boot/dts/imx23-sansa.dts         | 3 ++-
 arch/arm/boot/dts/imx23-stmp378x_devb.dts | 3 ++-
 arch/arm/boot/dts/imx23-xfi3.dts          | 3 ++-
 5 files changed, 10 insertions(+), 5 deletions(-)
arch/arm/boot/dts/imx23-evk.dts +2 -1
index 57e2997..bd06402 100644
@@ -16,7 +16,8 @@
 	model = "Freescale i.MX23 Evaluation Kit";
 	compatible = "fsl,imx23-evk", "fsl,imx23";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x08000000>;
 	};
 
arch/arm/boot/dts/imx23-olinuxino.dts +2 -1
index a8b1c53..109f516 100644
@@ -19,7 +19,8 @@
 	model = "i.MX23 Olinuxino Low Cost Board";
 	compatible = "olimex,imx23-olinuxino", "fsl,imx23";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x04000000>;
 	};
 
arch/arm/boot/dts/imx23-sansa.dts +2 -1
index 4ec32f4..9cf40d3 100644
@@ -48,7 +48,8 @@
 	model = "SanDisk Sansa Fuze+";
 	compatible = "sandisk,sansa_fuze_plus", "fsl,imx23";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x04000000>;
 	};
 
arch/arm/boot/dts/imx23-stmp378x_devb.dts +2 -1
index 455169e..aab0293 100644
@@ -16,7 +16,8 @@
 	model = "Freescale STMP378x Development Board";
 	compatible = "fsl,stmp378x-devb", "fsl,imx23";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x04000000>;
 	};
 
arch/arm/boot/dts/imx23-xfi3.dts +2 -1
index 025cf94..2b5df8d 100644
@@ -48,7 +48,8 @@
 	model = "Creative ZEN X-Fi3";
 	compatible = "creative,x-fi3", "fsl,imx23";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x04000000>;
 	};
 
Signature · 1 line
1.9.1
author reviewer
#2 lore raw

PATCH 3/3 ARM: dts: imx28: Fix build warnings with W=1

In reply to Fabio Estevam

From: Fabio Estevam <[email protected]>

Fix the following build warnings with W=1:

Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name

While at it, also pass the 'device_type' property as recommended by the ePAPR specification.

---
 arch/arm/boot/dts/imx28-apf28.dts            | 3 ++-
 arch/arm/boot/dts/imx28-apx4devkit.dts       | 3 ++-
 arch/arm/boot/dts/imx28-cfa10036.dts         | 3 ++-
 arch/arm/boot/dts/imx28-duckbill.dts         | 3 ++-
 arch/arm/boot/dts/imx28-eukrea-mbmx283lc.dts | 3 ++-
 arch/arm/boot/dts/imx28-eukrea-mbmx287lc.dts | 3 ++-
 arch/arm/boot/dts/imx28-evk.dts              | 3 ++-
 arch/arm/boot/dts/imx28-m28.dtsi             | 3 ++-
 arch/arm/boot/dts/imx28-m28cu3.dts           | 3 ++-
 arch/arm/boot/dts/imx28-sps1.dts             | 3 ++-
 arch/arm/boot/dts/imx28-tx28.dts             | 3 ++-
 11 files changed, 22 insertions(+), 11 deletions(-)
arch/arm/boot/dts/imx28-apf28.dts +2 -1
index 070e59c..b6976fb 100644
@@ -16,7 +16,8 @@
 	model = "Armadeus Systems APF28 module";
 	compatible = "armadeus,imx28-apf28", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x08000000>;
 	};
 
arch/arm/boot/dts/imx28-apx4devkit.dts +2 -1
index 1092b76..ce6115e 100644
@@ -5,7 +5,8 @@
 	model = "Bluegiga APX4 Development Kit";
 	compatible = "bluegiga,apx4devkit", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x04000000>;
 	};
 
arch/arm/boot/dts/imx28-cfa10036.dts +2 -1
index 570aa33..d016a3b 100644
@@ -16,7 +16,8 @@
 	model = "Crystalfontz CFA-10036 Board";
 	compatible = "crystalfontz,cfa10036", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x08000000>;
 	};
 
arch/arm/boot/dts/imx28-duckbill.dts +2 -1
index ce1a7ef..b5bc3f5 100644
@@ -16,7 +16,8 @@
 	model = "I2SE Duckbill";
 	compatible = "i2se,duckbill", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x08000000>;
 	};
 
arch/arm/boot/dts/imx28-eukrea-mbmx283lc.dts +2 -1
index 7c1572c..28dab6d 100644
@@ -23,7 +23,8 @@
 	model = "Eukrea Electromatique MBMX283LC";
 	compatible = "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x04000000>;
 	};
 };
arch/arm/boot/dts/imx28-eukrea-mbmx287lc.dts +2 -1
index e773144..08125e5 100644
@@ -22,7 +22,8 @@
 	model = "Eukrea Electromatique MBMX287LC";
 	compatible = "eukrea,mbmx287lc", "eukrea,mbmx283lc", "eukrea,mbmx28lc", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x08000000>;
 	};
 };
arch/arm/boot/dts/imx28-evk.dts +2 -1
index a5ba669..4cd8216 100644
@@ -16,7 +16,8 @@
 	model = "Freescale i.MX28 Evaluation Kit";
 	compatible = "fsl,imx28-evk", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x08000000>;
 	};
 
arch/arm/boot/dts/imx28-m28.dtsi +2 -1
index 214bb15..1bcba90 100644
@@ -15,7 +15,8 @@
 	model = "DENX M28";
 	compatible = "denx,m28", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x08000000>;
 	};
 
arch/arm/boot/dts/imx28-m28cu3.dts +2 -1
index 2df63be..c4c4cc7 100644
@@ -16,7 +16,8 @@
 	model = "MSR M28CU3";
 	compatible = "msr,m28cu3", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x08000000>;
 	};
 
arch/arm/boot/dts/imx28-sps1.dts +2 -1
index 0ce3cb8..5ddfb16 100644
@@ -16,7 +16,8 @@
 	model = "SchulerControl GmbH, SC SPS 1";
 	compatible = "schulercontrol,imx28-sps1", "fsl,imx28";
 
-	memory {
+	memory at 40000000 {
+		device_type = "memory";
 		reg = <0x40000000 0x08000000>;
 	};
 
arch/arm/boot/dts/imx28-tx28.dts +2 -1
index 0ebbc83..b4d4dbb 100644
@@ -35,7 +35,8 @@
 		usbotg = &usb0;
 	};
 
-	memory {
+	memory at 0 {
+		device_type = "memory";
 		reg = <0 0>; /* will be filled in by U-Boot */
 	};
 
Signature · 1 line
1.9.1
#5 lore raw

PATCH 1/3 ARM: dts: skeleton: Fix build warning with W=1

In reply to Fabio Estevam

Hi Fabio,

Quoted 10 lines

Fabio Estevam <[email protected]> hat am 14. August 2016 um 21:34 geschrieben:

From: Fabio Estevam <[email protected]>

Fix the following build warnings with W=1:

Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name

according to this thread [1] this patch shouldn't be applied yet. Patch 2 and 3 are okay.

Btw: Do you have any comments about this patch series [2]?

[1] -
http://lists.infradead.org/pipermail/linux-arm-kernel/2016-March/418430.html
[2] - http://marc.info/?l=linux-arm-kernel&m=147048830916087

Quoted 25 lines
---
 arch/arm/boot/dts/skeleton.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/boot/dts/skeleton.dtsi +1 -1
index b41d241..a20da0a 100644
@@ -9,5 +9,5 @@
 	#size-cells = <1>;
 	chosen { };
 	aliases { };
-	memory { device_type = "memory"; reg = <0 0>; };
+	memory at 0 { device_type = "memory"; reg = <0 0>; };
 };
Signature · 7 lines
1.9.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel at lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
author reviewer
#6 lore raw

PATCH 1/3 ARM: dts: skeleton: Fix build warning with W=1

Hi Stefan,

Quoted 2 lines · Stefan Wahren

according to this thread [1] this patch shouldn't be applied yet. Patch 2 and 3 are okay.

Ok, thanks. So patch 1/3 can be discarded then.

Quoted 1 line

Btw: Do you have any comments about this patch series [2]?

I tried to fix this sometime ago, but never had a chance to address the suggestions from Ulf. So better wait for the comments from the mmc folks.

#3 lore raw

PATCH 3/3 ARM: dts: imx28: Fix build warnings with W=1

In reply to Fabio Estevam
Quoted 8 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Fix the following build warnings with W=1:

Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name

While at it, also pass the 'device_type' property as recommended by the ePAPR specification.

I'm surprised it worked without unless you were relying on skeleton.dtsi. If that's the case, please remove the dependency on skeleton.dtsi while at it.

Rob

author reviewer
#4 lore raw

PATCH 3/3 ARM: dts: imx28: Fix build warnings with W=1

Quoted 5 lines · Rob Herring
Quoted 4 lines · Fabio Estevam

From: Fabio Estevam <[email protected]>

Fix the following build warnings with W=1:

Quoted 8 lines
Quoted 4 lines

Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name

While at it, also pass the 'device_type' property as recommended by the ePAPR specification.

I'm surprised it worked without unless you were relying on skeleton.dtsi. If that's the case, please remove the dependency on skeleton.dtsi while at it.

Yes, imx28.dtsi includes skeleton.dtsi. Will remove this dependency and submit a v2.