ACK: [PATCH] acpi: mcfg: enable only if ACPI is available
ivanhu
ivan.hu at canonical.com
Mon Jan 11 06:48:04 UTC 2021
On 1/8/21 11:44 AM, Alex Hung wrote:
> 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
>
Acked-by: Ivan Hu <ivan.hu at canonical.com>
More information about the fwts-devel
mailing list