diff mbox

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

Message ID 1334188256-26566-10-git-send-email-colin.king@canonical.com
State Accepted
Headers show

Commit Message

Colin Ian King April 11, 2012, 11:50 p.m. UTC
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(-)

Comments

Keng-Yu Lin April 12, 2012, 6:25 a.m. UTC | #1
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. UTC | #2
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>
diff mbox

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;