diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2021-12-07 16:03:34 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2022-02-08 23:35:06 +0530 |
commit | 5f8bceb544eb997287a4ce8efefc30395d8ce092 (patch) | |
tree | 68c4880e1ff6cb568ab64de29281e4843bfee99e | |
parent | 9b56489dc8ad5bff435da1d79584bb0a52c3e8a0 (diff) |
kbuild: Report enabled nodes with duplicated address
Duplicated unit address is a normal case, as long as no more than one
node using that address is enabled. Having duplicated addresses is
already allowed by '-Wno-unique_unit_address' in DTC_FLAGS. But two
simultaneously enabled nodes sharing the same address is usually
incorrect. Add '-Wunique_unit_address_if_enabled' flag to report
warnings for such case when doing "make dtbs_check".
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reported-by: Rob Herring <robh@kernel.org>
Suggested-by: Rob Herring <robh@kernel.org>
Message-Id: <20211207140334.10461-1-semen.protsenko@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
-rw-r--r-- | scripts/Makefile.lib | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/Makefile.lib b/scripts/Makefile.lib index 79be57fdd32a..6464be4baa36 100644 --- a/scripts/Makefile.lib +++ b/scripts/Makefile.lib @@ -308,7 +308,8 @@ DTC_FLAGS += -Wno-unit_address_vs_reg \ -Wno-alias_paths \ -Wno-graph_child_address \ -Wno-simple_bus_reg \ - -Wno-unique_unit_address + -Wno-unique_unit_address \ + -Wunique_unit_address_if_enabled endif ifneq ($(findstring 2,$(KBUILD_EXTRA_WARN)),) |