From patchwork Tue Nov 28 21:19:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 842311 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=devicetree-owner@vger.kernel.org; receiver=) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 3ymc4W0f94z9sBd for ; Wed, 29 Nov 2017 08:19:38 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751686AbdK1VTh (ORCPT ); Tue, 28 Nov 2017 16:19:37 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:46045 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751555AbdK1VTg (ORCPT ); Tue, 28 Nov 2017 16:19:36 -0500 Received: by mail-ot0-f196.google.com with SMTP id j64so1166274otj.12; Tue, 28 Nov 2017 13:19:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1Tu0rOYFeG9gkUPMBZ5hprd8H4yhiREI7HrbjJpmoo4=; b=HoSoaujXkoEdiSW/Ji7Tc51Aw3z7QG3SipUQbT56/YE8zq/9vjWy5Cd1dOWfaKpG6q Gr0vgo7TaqOFQio9IKN2lwaN4zWgELYvCXfE3PkBHOybo5lzrC/vDhlw60NcgWrGhbEU CwFCII9YCICqUE6m3g6mWvoE2IvYzExcJMK6iN4eumEsf584ci1BhmEYd2k99FZINVsl g3IMOoUNH5yz+3fsxSaHTJ5q8mmfIWDKXgjhLgoCgbfKO1RsvjBd8w1ofRpMT1t6OkUh OG2yJQcZZXe5RsRBj+UPL04PZS+ICnDnVyYJSlC1bn+udLm7xW1S4F9z8IVXBICn1MoU JSvA== X-Gm-Message-State: AJaThX7O1tjMc+WznfmIx8l1Mg7v0yo3rZFqYJESKSXXC0yiAQJuAhqY SlxVVeUGa5fXVXthL49ymSmSiQ0= X-Google-Smtp-Source: AGs4zMa4AY5SlFWOSw65MryuP/J33rvkKGUxL5vChBmFhL17fgWaljobHSP5pNQoWE6qdWwcVHofYQ== X-Received: by 10.157.85.194 with SMTP id z2mr463303oti.74.1511903975795; Tue, 28 Nov 2017 13:19:35 -0800 (PST) Received: from xps15.usacommunications.tv (216-188-254-6.dyn.grandenetworks.net. [216.188.254.6]) by smtp.googlemail.com with ESMTPSA id 125sm65317oig.7.2017.11.28.13.19.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Nov 2017 13:19:35 -0800 (PST) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Frank Rowand , Thomas Meyer Subject: [PATCH] of: enable unittests on UML Date: Tue, 28 Nov 2017 15:19:34 -0600 Message-Id: <20171128211934.15283-1-robh@kernel.org> X-Mailer: git-send-email 2.14.1 Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org The unittests can run on UML, but OF_IRQ and OF_ADDRESS need to be enabled. Rework the kconfig dependencies to enable the unittests. The unittests cannot build on Sparc, so we need to add an explicit dependency for !SPARC. There's one failure in overlay tests because the base DT is not unflattened early. Cc: Thomas Meyer Signed-off-by: Rob Herring --- drivers/of/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/of/Kconfig b/drivers/of/Kconfig index ad9a9578f9c4..5020d7ef7494 100644 --- a/drivers/of/Kconfig +++ b/drivers/of/Kconfig @@ -13,7 +13,8 @@ if OF config OF_UNITTEST bool "Device Tree runtime unit tests" - depends on OF_IRQ + depends on !SPARC + select IRQ_DOMAIN select OF_EARLY_FLATTREE select OF_RESOLVE help @@ -61,7 +62,7 @@ config OF_DYNAMIC config OF_ADDRESS def_bool y - depends on !SPARC && HAS_IOMEM + depends on !SPARC && (HAS_IOMEM || UML) select OF_ADDRESS_PCI if PCI config OF_ADDRESS_PCI