Patchwork [09/11] acpica: fwts_iasl_interface: we need to enable preprocessor to stop ramdom segfaulting

login
register
mail settings
Submitter Colin King
Date April 11, 2012, 11:50 p.m.
Message ID <1334188256-26566-10-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/151948/
State Accepted
Headers show

Comments

Colin King - April 11, 2012, 11:50 p.m.
From: Colin Ian King <colin.king@canonical.com>

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/acpica/source/compiler/fwts_iasl_interface.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Keng-Yu Lin - April 12, 2012, 6:25 a.m.
On Thu, Apr 12, 2012 at 7:50 AM, Colin King <colin.king@canonical.com> wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>  src/acpica/source/compiler/fwts_iasl_interface.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/acpica/source/compiler/fwts_iasl_interface.c b/src/acpica/source/compiler/fwts_iasl_interface.c
> index ada4326..88a20a2 100644
> --- a/src/acpica/source/compiler/fwts_iasl_interface.c
> +++ b/src/acpica/source/compiler/fwts_iasl_interface.c
> @@ -110,7 +110,7 @@ int fwts_iasl_assemble_aml(const char *source, char **output)
>                /* Setup ACPICA compiler globals */
>                Gbl_DisasmFlag = FALSE;
>                Gbl_DoCompile = TRUE;
> -               Gbl_PreprocessFlag = FALSE;
> +               Gbl_PreprocessFlag = TRUE;
>                Gbl_UseDefaultAmlFilename = FALSE;
>                Gbl_OutputFilenamePrefix = source;
>
> --
> 1.7.9.5
>
Acked-by: Keng-Yu Lin <kengyu@canonical.com>
Alex Hung - April 12, 2012, 9:10 a.m.
On 04/12/2012 07:50 AM, Colin King wrote:
> From: Colin Ian King<colin.king@canonical.com>
>
> Signed-off-by: Colin Ian King<colin.king@canonical.com>
> ---
>   src/acpica/source/compiler/fwts_iasl_interface.c |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/acpica/source/compiler/fwts_iasl_interface.c b/src/acpica/source/compiler/fwts_iasl_interface.c
> index ada4326..88a20a2 100644
> --- a/src/acpica/source/compiler/fwts_iasl_interface.c
> +++ b/src/acpica/source/compiler/fwts_iasl_interface.c
> @@ -110,7 +110,7 @@ int fwts_iasl_assemble_aml(const char *source, char **output)
>   		/* Setup ACPICA compiler globals */
>   		Gbl_DisasmFlag = FALSE;
>           	Gbl_DoCompile = TRUE;
> -		Gbl_PreprocessFlag = FALSE;
> +		Gbl_PreprocessFlag = TRUE;
>           	Gbl_UseDefaultAmlFilename = FALSE;
>           	Gbl_OutputFilenamePrefix = source;
>
Acked-by: Alex Hung <alex.hung@canonical.com>

Patch

diff --git a/src/acpica/source/compiler/fwts_iasl_interface.c b/src/acpica/source/compiler/fwts_iasl_interface.c
index ada4326..88a20a2 100644
--- a/src/acpica/source/compiler/fwts_iasl_interface.c
+++ b/src/acpica/source/compiler/fwts_iasl_interface.c
@@ -110,7 +110,7 @@  int fwts_iasl_assemble_aml(const char *source, char **output)
 		/* Setup ACPICA compiler globals */
 		Gbl_DisasmFlag = FALSE;
         	Gbl_DoCompile = TRUE;
-		Gbl_PreprocessFlag = FALSE;
+		Gbl_PreprocessFlag = TRUE;
         	Gbl_UseDefaultAmlFilename = FALSE;
         	Gbl_OutputFilenamePrefix = source;