arm/arm64: samsung: Enable W=1 on dtbs by default
Subsystems (2)
Rob Herring
maintainerPATCH 1/1 arm/arm64: samsung: Enable W=1 on dtbs by default
Samsung platforms are clean of W=1 dtc warnings, so enable the warnings by default. This way submitters don't have to remember to run a W=1 build of the .dts files and the grumpiness of the maintainers can be reduced.
---
Well, there's a couple of warnings on 32-bit, but they look fixable to me.
There's a few other platforms we could do this to. Sadly, they are still the minority. Otherwise, we could change the default and add a flag to disable (I_STILL_HAVENT_FIXED_MY_PLATFORMS=1).
--- arch/arm/boot/dts/samsung/Makefile | 3 +++ arch/arm64/boot/dts/exynos/Makefile | 4 ++++ 2 files changed, 7 insertions(+)
arch/arm/boot/dts/samsung/Makefile +3 -0
@@ -1,4 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 + +KBUILD_EXTRA_WARN=1 + dtb-$(CONFIG_ARCH_EXYNOS3) += \ exynos3250-artik5-eval.dtb \ exynos3250-monk.dtb \
arch/arm64/boot/dts/exynos/Makefile +4 -0
@@ -1,4 +1,8 @@ # SPDX-License-Identifier: GPL-2.0 + +KBUILD_EXTRA_WARN=1 +DTC_FLAGS += -Wno-graph_child_address + dtb-$(CONFIG_ARCH_EXYNOS) += \ exynos5433-tm2.dtb \ exynos5433-tm2e.dtb \
Signature · 1 line
2.42.0
Quoted 5 lines · Rob Herring
Samsung platforms are clean of W=1 dtc warnings, so enable the warnings by default. This way submitters don't have to remember to run a W=1 build of the .dts files and the grumpiness of the maintainers can be reduced.
Quoted 8 lines
Signed-off-by Rob Herring <[email protected]>---
Well, there's a couple of warnings on 32-bit, but they look fixable to me.There's a few other platforms we could do this to. Sadly, they are still the minority. Otherwise, we could change the default and add a flag to disable (I_STILL_HAVENT_FIXED_MY_PLATFORMS=1).
64-bit has still few warnings:
https://krzk.eu/#/builders/29/builds/3710/steps/26/logs/warnings__6_
I guess these could be fixed by changing ports to port in the DTS and bindings. I assume drivers are ready for it.
32-bit I fixed in this cycle - last three commits - so all Samsung 32-bit platforms are free from W=1 dtc warnings (yay!).
Best regards,
Krzysztof
Rob Herring
maintainerQuoted 12 lines · Krzysztof Kozlowski
Quoted 10 lines · Rob Herring
Samsung platforms are clean of W=1 dtc warnings, so enable the warnings by default. This way submitters don't have to remember to run a W=1 build of the .dts files and the grumpiness of the maintainers can be reduced.
Signed-off-by Rob Herring <[email protected]>---
Well, there's a couple of warnings on 32-bit, but they look fixable to me.
Quoted 6 lines
Quoted 3 lines
There's a few other platforms we could do this to. Sadly, they are still the minority. Otherwise, we could change the default and add a flag to disable (I_STILL_HAVENT_FIXED_MY_PLATFORMS=1).
64-bit has still few warnings:
https://krzk.eu/#/builders/29/builds/3710/steps/26/logs/warnings__6_
I may move that graph check to W=2. There's some cases where port@1 is optional and it doesn't really make sense to fix these.
Also, Conor wants to do this for all of riscv, but this solution is per directory. So I need to rework it to use a different variable that can be per directory or global.
Rob
Quoted 21 lines · Rob Herring
Quoted 12 lines · Krzysztof Kozlowski
Quoted 10 lines · Rob Herring
Samsung platforms are clean of W=1 dtc warnings, so enable the warnings by default. This way submitters don't have to remember to run a W=1 build of the .dts files and the grumpiness of the maintainers can be reduced.
Signed-off-by Rob Herring <[email protected]>---
Well, there's a couple of warnings on 32-bit, but they look fixable to me.Quoted 6 lines
Quoted 3 lines
There's a few other platforms we could do this to. Sadly, they are still the minority. Otherwise, we could change the default and add a flag to disable (I_STILL_HAVENT_FIXED_MY_PLATFORMS=1).
64-bit has still few warnings:
https://krzk.eu/#/builders/29/builds/3710/steps/26/logs/warnings__6_
Quoted 6 lines
I may move that graph check to W=2. There's some cases where port@1 is optional and it doesn't really make sense to fix these.
Also, Conor wants to do this for all of riscv, but this solution is per directory. So I need to rework it to use a different variable that can be per directory or global.
Just to clarify, because I still have this patch in my inbox: I assume you are going to send a v2 of this, so I drop it.
Best regards,
Krzysztof
Quoted 25 lines · Krzysztof Kozlowski
Quoted 24 lines · Rob Herring
Quoted 12 lines · Krzysztof Kozlowski
Quoted 10 lines · Rob Herring
Samsung platforms are clean of W=1 dtc warnings, so enable the warnings by default. This way submitters don't have to remember to run a W=1 build of the .dts files and the grumpiness of the maintainers can be reduced.
Signed-off-by Rob Herring <[email protected]>---
Well, there's a couple of warnings on 32-bit, but they look fixable to me.Quoted 6 lines
Quoted 3 lines
There's a few other platforms we could do this to. Sadly, they are still the minority. Otherwise, we could change the default and add a flag to disable (I_STILL_HAVENT_FIXED_MY_PLATFORMS=1).
64-bit has still few warnings:
https://krzk.eu/#/builders/29/builds/3710/steps/26/logs/warnings__6_I may move that graph check to W=2. There's some cases where port@1 is optional and it doesn't really make sense to fix these.
Quoted 6 lines
Quoted 3 lines
Also, Conor wants to do this for all of riscv, but this solution is per directory. So I need to rework it to use a different variable that can be per directory or global.
Just to clarify, because I still have this patch in my inbox: I assume you are going to send a v2 of this, so I drop it.
We got
https://lore.kernel.org/linux-devicetree/[email protected]/
out of this instead of a v2, did we not?
Quoted 11 lines · Conor Dooley
Quoted 11 lines
Quoted 10 lines
Quoted 3 lines
64-bit has still few warnings:
https://krzk.eu/#/builders/29/builds/3710/steps/26/logs/warnings__6_I may move that graph check to W=2. There's some cases where port@1 is optional and it doesn't really make sense to fix these.
Also, Conor wants to do this for all of riscv, but this solution is per directory. So I need to rework it to use a different variable that can be per directory or global.
Quoted 6 lines
Quoted 2 lines
Just to clarify, because I still have this patch in my inbox: I assume you are going to send a v2 of this, so I drop it.
We got
https://lore.kernel.org/linux-devicetree/[email protected]/
out of this instead of a v2, did we not?
Indeed, I forgot.
Best regards,
Krzysztof