[PATCH] acpi: mcfg: enable only if ACPI is available

Alex Hung alex.hung at canonical.com
Fri Jan 8 03:44:31 UTC 2021


BugLink: https://bugs.launchpad.net/bugs/1910367

Fixes: f464761b86d5 ("acpi: enable & disable acpi tables for arm64")
Signed-off-by: Alex Hung <alex.hung at canonical.com>
---
 src/acpi/mcfg/mcfg.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/acpi/mcfg/mcfg.c b/src/acpi/mcfg/mcfg.c
index 1e7777dc..a4636f0b 100644
--- a/src/acpi/mcfg/mcfg.c
+++ b/src/acpi/mcfg/mcfg.c
@@ -18,6 +18,8 @@
  */
 #include "fwts.h"
 
+#if defined(FWTS_HAS_ACPI)
+
 #include <stdlib.h>
 #include <stdio.h>
 #include <string.h>
@@ -252,3 +254,4 @@ static fwts_framework_ops mcfg_ops = {
 
 FWTS_REGISTER("mcfg", &mcfg_ops, FWTS_TEST_ANYTIME, FWTS_FLAG_BATCH | FWTS_FLAG_ROOT_PRIV | FWTS_FLAG_TEST_ACPI)
 
+#endif
-- 
2.25.1




More information about the fwts-devel mailing list