From patchwork Tue Feb 9 01:32:43 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Al Stone X-Patchwork-Id: 61454 Delivered-To: patches@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1766569lbl; Mon, 8 Feb 2016 17:33:23 -0800 (PST) X-Received: by 10.202.228.21 with SMTP id b21mr1532656oih.103.1454981600777; Mon, 08 Feb 2016 17:33:20 -0800 (PST) Return-Path: Received: from mail-ob0-x230.google.com (mail-ob0-x230.google.com. [2607:f8b0:4003:c01::230]) by mx.google.com with ESMTPS id j62si1080087oib.80.2016.02.08.17.33.20 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Feb 2016 17:33:20 -0800 (PST) Received-SPF: pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c01::230 as permitted sender) client-ip=2607:f8b0:4003:c01::230; Authentication-Results: mx.google.com; spf=pass (google.com: domain of al.stone@linaro.org designates 2607:f8b0:4003:c01::230 as permitted sender) smtp.mailfrom=al.stone@linaro.org; dkim=pass header.i=@linaro.org Received: by mail-ob0-x230.google.com with SMTP id ba1so173668878obb.3 for ; Mon, 08 Feb 2016 17:33:20 -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=/zqjaQWUPCtxRzfJev7Hn34QFHCkig5dft7ObLELnvk=; b=MEHZ57fNSA9vDcJQZl0Hu1uvD2tntfvVBeJRXrzwa367DQzhUIvsc81K7+tEL1fixe cMatHlcnSjZrjQaRUWwVFqgKOEpKEgZ/l7ezFb2ksQxtkZw+xitSNkBHdq1NGu5OBtVw iT3z1HjMQq0jihU1fL+237kJTj1piq2yxY6eI= 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=/zqjaQWUPCtxRzfJev7Hn34QFHCkig5dft7ObLELnvk=; b=O7h+SMV/cj4WgUrLIaASpLwNcyEVDjK6TLV3F5fGAA8lnkH5RB4mbofBTz8ZVFRi2r bBQ37BdIk7O85gu9c84B4ipS4eHbHu2vkmJzEo2q3MQEI7YLJqw0RiAEGDMojwwFS05X KfMXfQZ6re4R5Vy9fABXN7R9y1VtVPKi2ZKlkjzw6VtY90gbkkhNdcs5eDNQZTOF8m46 rX3Xm3XvyVjWo4pnluq0LOe+RF8uInSqtjttWQ65Qh5exPJ3L0YVwT1tEfIBWcAuH63Y tYS+ywFEpODEnGHQgjeiru7N+GTuB4uWvlIOKG1G4oVc08YUkU+LrOdKLlcnSVAdnsEv x65Q== X-Gm-Message-State: AG10YOSm714U2ohs2Tz1w9iSteLmSqb92yc1nSk3UuR6zVp1JqRTbmZ+M7Hxswdp6lvfY05oddc= X-Received: by 10.60.65.74 with SMTP id v10mr27680848oes.58.1454981600496; Mon, 08 Feb 2016 17:33:20 -0800 (PST) Return-Path: Received: from fidelio.ahs3 (c-50-134-239-249.hsd1.co.comcast.net. [50.134.239.249]) by smtp.googlemail.com with ESMTPSA id qp4sm19097135obc.9.2016.02.08.17.33.18 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 08 Feb 2016 17:33: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 01/21] FADT: enable compiling on non-x86 architectures Date: Mon, 8 Feb 2016 18:32:43 -0700 Message-Id: <1454981583-31872-2-git-send-email-al.stone@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1454981583-31872-1-git-send-email-al.stone@linaro.org> References: <1454981583-31872-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 --- 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