Message ID | 20231027102440.677773-1-herve.codina@bootlin.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:d641:0:b0:403:3b70:6f57 with SMTP id cy1csp497294vqb; Fri, 27 Oct 2023 03:25:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFoX5oHGiVVZ9NWixZa77ixtwf8QeYrY+XaJfX35z7w/BMsYbxR0Rj74vuDpdHEwAnpu7wz X-Received: by 2002:a25:d00a:0:b0:d9a:53cc:e58d with SMTP id h10-20020a25d00a000000b00d9a53cce58dmr4403242ybg.10.1698402300651; Fri, 27 Oct 2023 03:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698402300; cv=none; d=google.com; s=arc-20160816; b=CEZeHVKvF4yAnSBOPMOcMk2BdRXE0FAzxtanxHokKSgjr61+gj6ylNJBCOBJLj0SUa DnJRKZCpzCQQkUKYESBYHHLybuNDBXNb07yDKfZuGIQ863lsTm39Zz2jw6C+SVHo+sLv ILe2jTSXPpDBpEOIpN2zxAT/EpQd5dTMSrBWgvXcWn4Gu9D0KIYBaMMZP4mOq09YVE8M TkwobLN+To6/qMjAuSP1PCVCkRLGeoi2voEVf/J69WI0bFYSRUurl9Nqr0kKQpGeJIsC CTOrCyfcAechSbsYwJ355s7olxPKAmFCqzci4rtyi8HHQINIjnazjO3usU6CcIZbc2cL ghvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=cGPv+pY+P6hcMNmV/AQ4WJAxMTYlBDo9T5+aYFQOgzo=; fh=CGM3q4bMm1iUpNpe6xVwGDj3Q7MGC6K8nkl0yubR/3I=; b=RWVrm5xEI3ruXmnSGtCPJIMQLvFITYSHQzsX7PHFrTUuPXgHcWpfI55/hBlngxtJ9d w/BF08xeLNRDICbzXqRnvFoWRiiKQDxVpW4ecjqF95DLrN8pVaymkvcZs+b23Hh38U6B TjxCt+NSlLkJotUGF5xg4jqvEJZ2kWbfMF8g18aZ45b2o2uFDpSfrElanylCcdd8GG4U a4IRX300yw+aqBSzGSsk7tkgc3EEJ5Ajvp1aJYCxTDobx8aSrzyHGdMq65mMlVmpXyGu 7xAyRyYg6th0kJInO6A9fuZDIYC9t36NfvOcOMUwuJ1Z+1q0hvjgeUs5aiTqEq21Cbgq 3HOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BNqnkM7D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id cj15-20020a056902188f00b00da046d44f01si3012508ybb.286.2023.10.27.03.25.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 27 Oct 2023 03:25:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BNqnkM7D; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9792582F05EC; Fri, 27 Oct 2023 03:24:59 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345595AbjJ0KY5 (ORCPT <rfc822;aposhian.dev@gmail.com> + 26 others); Fri, 27 Oct 2023 06:24:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231345AbjJ0KYz (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 27 Oct 2023 06:24:55 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C361DC; Fri, 27 Oct 2023 03:24:52 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPA id 6724CFF813; Fri, 27 Oct 2023 10:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1698402290; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cGPv+pY+P6hcMNmV/AQ4WJAxMTYlBDo9T5+aYFQOgzo=; b=BNqnkM7DL8PHAvoJucbsNnzyN67Xqv3vw1XSqrpkP1Wp9YjQY4tN0jdVh2O7osNMJeG5Aw HbasXwbwQngKO6KQyOahNUFA2dVEFk8GQj48Uwgg+YoM1jylHXugFjPYuFMSzEVSnktN/L I5bNGYZQFOnS6xXdKD1ptxClT2j8f4sGj+Lr6deYmvsznRyiqLwtIVu2QsdfghvB5Rg493 +8YPecnqp0FJdfUn1sez8dAbku1P06TJxMXwf5EqFd7BtVFqSbYNgI6b4VtYZaLujWuuuj 8SJPi8ECG2bqwlq+AYAG5XSl+lO2oiBwQ5u5M+mEefUQLaR0VtWysla/9zFDfg== From: Herve Codina <herve.codina@bootlin.com> To: Rob Herring <robh+dt@kernel.org>, Frank Rowand <frowand.list@gmail.com>, Lizhi Hou <lizhi.hou@amd.com> Cc: Max Zhen <max.zhen@amd.com>, Sonal Santan <sonal.santan@amd.com>, Stefano Stabellini <stefano.stabellini@xilinx.com>, Jonathan Cameron <Jonathan.Cameron@Huawei.com>, Bjorn Helgaas <bhelgaas@google.com>, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Allan Nielsen <allan.nielsen@microchip.com>, Horatiu Vultur <horatiu.vultur@microchip.com>, Steen Hegelund <steen.hegelund@microchip.com>, Thomas Petazzoni <thomas.petazzoni@bootlin.com>, Herve Codina <herve.codina@bootlin.com>, kernel test robot <lkp@intel.com> Subject: [PATCH 1/1] of: unittest: Fix test build on config without CONFIG_OF_ADDRESS Date: Fri, 27 Oct 2023 12:24:37 +0200 Message-ID: <20231027102440.677773-1-herve.codina@bootlin.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Fri, 27 Oct 2023 03:24:59 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780903890902127550 X-GMAIL-MSGID: 1780903890902127550 |
Series |
[1/1] of: unittest: Fix test build on config without CONFIG_OF_ADDRESS
|
|
Commit Message
Herve Codina
Oct. 27, 2023, 10:24 a.m. UTC
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@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202310271513.8MUErCK4-lkp@intel.com/
Signed-off-by: Herve Codina <herve.codina@bootlin.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(+)
Comments
On Fri, 27 Oct 2023 12:24:37 +0200, Herve Codina wrote: > 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@intel.com> > Closes: https://lore.kernel.org/oe-kbuild-all/202310271513.8MUErCK4-lkp@intel.com/ > Signed-off-by: Herve Codina <herve.codina@bootlin.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(+) > Squashed and applied, thanks!
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);