From patchwork Fri Feb 19 23:39:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 62417 Delivered-To: patches@linaro.org Received: by 10.112.43.199 with SMTP id y7csp78433lbl; Fri, 19 Feb 2016 15:40:21 -0800 (PST) X-Received: by 10.202.199.212 with SMTP id x203mr13040396oif.21.1455925221806; Fri, 19 Feb 2016 15:40:21 -0800 (PST) Return-Path: Received: from mail-oi0-x231.google.com (mail-oi0-x231.google.com. [2607:f8b0:4003:c06::231]) by mx.google.com with ESMTPS id vt2si7935459oeb.40.2016.02.19.15.40.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Feb 2016 15:40:21 -0800 (PST) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c06::231 as permitted sender) client-ip=2607:f8b0:4003:c06::231; Authentication-Results: mx.google.com; spf=pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c06::231 as permitted sender) smtp.mailfrom=al.stone@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-oi0-x231.google.com with SMTP id j125so22995463oih.0 for ; Fri, 19 Feb 2016 15:40:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/EbjMiv/uNxJ7pJbxo1qwt4VU+quC2BKY93qQQ9Ac5k=; b=bMMaHHu839TaRCeIEpioWmKRS6f93iOxXM1IHL9UyyEPdhUB9lX3jkb92xLr49nYVI O1xEphx+9VuX3u0QFJfdF4WnVCoaQTRn8m8d5SvHgO9tAxZGJNsG4J1KYaq5hUlfiD4H VA9hK8RcUYflbiGpRtXfuc4NkVkrK0iJCt4Ts= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/EbjMiv/uNxJ7pJbxo1qwt4VU+quC2BKY93qQQ9Ac5k=; b=ODiPcToB1/VkP4uGImH0bQC3vTq3YuZ2m+w8RuV/i8hnZvYcBKEOyYfIbFnwgFqH9A teWie9JoNvJap4091S5LueI6BU2KWp7OoGukPdkV/QC7WWLbGjvv7kkjr+X/12i2/4Js T0NtGbxXKdBOx9J39qo86J9MBfDYyl/uXJRdjaqj318KRJcTTvKwGDUqSpPu58rj4/6U 0KowANYLo7KZkjZDJVUMNQXvsGx0+AdDzrebU5rmFdWuU2gTDZey54/eqX+MRO4/0TMa 4SLiIdlL4kk/oE32hp92ZsSi35C0zK2rPsCuqSETnwa2XdCkrOAWYqfRHQvVphiLKUCq dJTA== X-Gm-Message-State: AG10YOS4XfQS27gKxOaSbFvB43dRUh7gxV2UqLemruAHTXotbnHTo7KHnv98Ze3Oa4nJLzP52UE= X-Received: by 10.202.194.70 with SMTP id s67mr13668972oif.109.1455925221297; Fri, 19 Feb 2016 15:40:21 -0800 (PST) Return-Path: Received: from fidelio.ahs3.com (c-50-134-239-249.hsd1.co.comcast.net. [50.134.239.249]) by smtp.googlemail.com with ESMTPSA id kg7sm8655217obb.27.2016.02.19.15.40.19 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Feb 2016 15:40:19 -0800 (PST) From: Al Stone To: fwts-devel@lists.ubuntu.com Cc: linaro-acpi@lists.linaro.org, patches@linaro.org, Al Stone Subject: [PATCH v2 01/23] FADT: enable compiling on non-x86 architectures Date: Fri, 19 Feb 2016 16:39:37 -0700 Message-Id: <1455925199-8587-2-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1455925199-8587-1-git-send-email-al.stone@linaro.org> References: <1455925199-8587-1-git-send-email-al.stone@linaro.org> Instead of disabling the compilation of all FADT tests on non-x86 machines, enable as much as possible, even if the tests do not yet make sense. In subsequent patches, we will modify the tests to acknowledge the specifics of a given target arch. This does not change functionality on x86, but it does allow us to start testing portions of the FADT on other architectures. Signed-off-by: Al Stone Acked-by: Colin Ian King Acked-by: Ivan Hu --- src/acpi/fadt/fadt.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) -- 2.5.0 diff --git a/src/acpi/fadt/fadt.c b/src/acpi/fadt/fadt.c index 0f3739b..1a5560c 100644 --- a/src/acpi/fadt/fadt.c +++ b/src/acpi/fadt/fadt.c @@ -20,13 +20,18 @@ */ #include "fwts.h" -#ifdef FWTS_ARCH_INTEL - #include #include #include #include +#ifdef FWTS_ARCH_INTEL #include +#else +static inline int ioperm(int a, ...) +{ + return a * 0; +} +#endif #include #include #include @@ -549,6 +554,7 @@ static fwts_framework_ops fadt_ops = { .minor_tests = fadt_tests }; -FWTS_REGISTER("fadt", &fadt_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | FWTS_FLAG_ROOT_PRIV | FWTS_FLAG_TEST_ACPI) +FWTS_REGISTER("fadt", &fadt_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | + FWTS_FLAG_ROOT_PRIV | FWTS_FLAG_TEST_ACPI | + FWTS_FLAG_TEST_COMPLIANCE_ACPI) -#endif