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: 119904 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2230343qgn; Tue, 28 Nov 2017 13:19:38 -0800 (PST) X-Google-Smtp-Source: AGs4zMbTgHetpyLbCz/Ctfsg3Lw8nl6+bHFpU109qd88h+0m4LhYCn8pQc/kyFWM0UtgzG8mNPyp X-Received: by 10.159.211.71 with SMTP id g7mr507218plp.15.1511903978601; Tue, 28 Nov 2017 13:19:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511903978; cv=none; d=google.com; s=arc-20160816; b=O/C1Rs7IOsvSCm0K5t5z5DWCjf7NR1rIa/UEas6U2H/f5vPZyQAVQSqZANf6yTwQsH iep0kyz/5UayR6K115nNL9r/GoX0FLD6LkUH5owt0/Qgap8dHCND4W6PELIGB/slDYWW npBvIQC+JBgnSN+nH1hkDfD4JfgEypQTgUNsk4rUIJuXsgnna59zRZoIz0Cwq0ar8yTs 7n6YrG5ZCxNtg/Pcq1pyftisJuDXbokNj9kehR6RSf5EtOF4Vgoa+aQHkc1U0gWXqT4o vKKv5BhxI/6KM4lgPVt4xNXJOR6jRAzZTZGLqga5jMBUgD9kiCWgxANsfaZjQOq4hyOC f5zg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=4vrnobSWv6838rGWdC5J1050v0gsXgsPykjcpGKJOpI=; b=OwW/W131zhHpCqigtsnwJplsmj4o43x6MVGn79e8t78MX3pNxpJJ6IeFM1UVRI/LZ3 d/6xnJgsxGLtqQ9e3eWIS17kfb9ZNjyPZ/qcs5J1MZiHwuR83cTC2Z1lO3QmkIm6dyGy zGXJD8DEAcwxWnKAvwUFgVCitqSWV5WK9oGGPiPfQiVcsr1H8xVdpTe2CN5eMdtlCgpe 1AeP3kzCSAZD2pe3gwt+AZeYdAB6g4p6y3q0UYgeGAZzxEszujnKapzkYn6ctspHkGaA AJHq8dV86eRVBHxyQGgJM4CIhFZhX24nuZnGt6pVXBWSHaLKt8T4icVwcAABL+sSsY8B Oa3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v6si82575pgt.312.2017.11.28.13.19.38; Tue, 28 Nov 2017 13:19:38 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751686AbdK1VTh (ORCPT + 6 others); 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-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(-) -- 2.14.1 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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