[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231027102440.677773-1-herve.codina@bootlin.com>
Date: Fri, 27 Oct 2023 12:24:37 +0200
From: Herve Codina <herve.codina@...tlin.com>
To: Rob Herring <robh+dt@...nel.org>,
Frank Rowand <frowand.list@...il.com>,
Lizhi Hou <lizhi.hou@....com>
Cc: Max Zhen <max.zhen@....com>, Sonal Santan <sonal.santan@....com>,
Stefano Stabellini <stefano.stabellini@...inx.com>,
Jonathan Cameron <Jonathan.Cameron@...wei.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
Allan Nielsen <allan.nielsen@...rochip.com>,
Horatiu Vultur <horatiu.vultur@...rochip.com>,
Steen Hegelund <steen.hegelund@...rochip.com>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
Herve Codina <herve.codina@...tlin.com>,
kernel test robot <lkp@...el.com>
Subject: [PATCH 1/1] of: unittest: Fix test build on config without CONFIG_OF_ADDRESS
of_address_to_resource() is not defined if !CONFIG_OF_ADDRESS.
Return early in of_unittest_check_addr() to avoid the
of_address_to_resource() usage.
Reported-by: kernel test robot <lkp@...el.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310271513.8MUErCK4-lkp@intel.com/
Signed-off-by: Herve Codina <herve.codina@...tlin.com>
---
Rob,
This fixes a patch you already applied from my series
https://lore.kernel.org/all/20231017110221.189299-1-herve.codina@bootlin.com/
I don't know if it's too late or not but maybe you can squash this fix patch.
My apologies for this issue.
Hervé
drivers/of/unittest.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
index ffbecd349899..e9e90e96600e 100644
--- a/drivers/of/unittest.c
+++ b/drivers/of/unittest.c
@@ -1201,6 +1201,9 @@ static void __init of_unittest_check_addr(const char *node_path,
unsigned int count;
int ret;
+ if (!IS_ENABLED(CONFIG_OF_ADDRESS))
+ return;
+
np = of_find_node_by_path(node_path);
if (!np) {
pr_err("missing testcase data (%s)\n", node_path);
--
2.41.0
Powered by blists - more mailing lists