Skip to contentSkip to conversation

dt-bindings: fix compilation error of the example in marvell,mmp3-hsic-phy.yaml

PATCH Applied Dafna Hirschfeld 3 participants 3 messages Jan 24, 2020

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

PATCH 1/1 dt-bindings: fix compilation error of the example in marvell,mmp3-hsic-phy.yaml

Running make dt_binging_check, gives the error:

DTC Documentation/devicetree/bindings/phy/marvell,mmp3-hsic-phy.example.dt.yaml
Error: Documentation/devicetree/bindings/phy/marvell,mmp3-hsic-phy.example.dts:20.41-42 syntax error FATAL ERROR: Unable to parse input tree

This is because the example uses the macro GPIO_ACTIVE_HIGH which is defined in gpio.h but the include of this header is missing. Add the include to fix the error.

---
 Documentation/devicetree/bindings/phy/marvell,mmp3-hsic-phy.yaml | 1 +
 1 file changed, 1 insertion(+)
Documentation/devicetree/bindings/phy/marvell,mmp3-hsic-phy.yaml +1 -0
index 7917a95cda78..5ab436189f3b 100644
@@ -33,6 +33,7 @@ required:
 
 examples:
   - |
+    #include <dt-bindings/gpio/gpio.h>
     hsic-phy@f0001800 {
             compatible = "marvell,mmp3-hsic-phy";
             reg = <0xf0001800 0x40>;
Signature · 1 line
2.17.1
Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Dafna Hirschfeld

Running make dt_binging_check, gives the error:

DTC Documentation/devicetree/bindings/phy/marvell,mmp3-hsic-phy.example.dt.yaml
Error: Documentation/devicetree/bindings/phy/marvell,mmp3-hsic-phy.example.dts:20.41-42 syntax error FATAL ERROR: Unable to parse input tree

Quoted 5 lines

This is because the example uses the macro GPIO_ACTIVE_HIGH which is defined in gpio.h but the include of this header is missing. Add the include to fix the error.

Fixes f6f149604eef ("dt-bindings: phy: Add binding for marvell,mmp3-hsic-phy")

Arnd, Olof, The above commit is in your tree. Please apply this.

Rob

#2 lore raw
Quoted 13 lines · Rob Herring
Quoted 11 lines · Dafna Hirschfeld

Running make dt_binging_check, gives the error:

DTC Documentation/devicetree/bindings/phy/marvell,mmp3-hsic-phy.example.dt.yaml
Error: Documentation/devicetree/bindings/phy/marvell,mmp3-hsic-phy.example.dts:20.41-42 syntax error FATAL ERROR: Unable to parse input tree

This is because the example uses the macro GPIO_ACTIVE_HIGH which is defined in gpio.h but the include of this header is missing. Add the include to fix the error.

Quoted 6 lines
Quoted 1 line
Fixes f6f149604eef ("dt-bindings: phy: Add binding for marvell,mmp3-hsic-phy")

Arnd, Olof, The above commit is in your tree. Please apply this.

Applied.

Thanks,

-Olof