[iasl] Fixed debian-unaligned.patch warnings for 32-bit arches

Richard W.M. Jones rjones at fedoraproject.org
Wed Oct 17 12:53:49 UTC 2012


commit 5d3e3b6320c3aac291ff65e6a332d7d3e749b1e1
Author: Paolo Bonzini <pbonzini at redhat.com>
Date:   Wed Oct 17 14:51:12 2012 +0200

    Fixed debian-unaligned.patch warnings for 32-bit arches

 debian-unaligned.patch |   16 ++++++++--------
 iasl.spec              |    5 ++++-
 2 files changed, 12 insertions(+), 9 deletions(-)
---
diff --git a/debian-unaligned.patch b/debian-unaligned.patch
index 7215cb2..6ec4c8a 100644
--- a/debian-unaligned.patch
+++ b/debian-unaligned.patch
@@ -23,26 +23,26 @@ index ebf87f3..fd859d7 100644
      {
      case PARSEOP_STRING_LITERAL:
 -        DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Value);
-+        Op->Asl.Value.String = (ACPI_STRING) Value;
-+        DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", (ACPI_STRING) Value);
++        Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value;
++        DbgPrint (ASL_PARSE_OUTPUT, "STRING->%s", Op->Asl.Value.String);
          break;
  
      case PARSEOP_NAMESEG:
 -        DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Value);
-+        Op->Asl.Value.String = (ACPI_STRING) Value;
-+        DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", (ACPI_STRING) Value);
++        Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value;
++        DbgPrint (ASL_PARSE_OUTPUT, "NAMESEG->%s", Op->Asl.Value.String);
          break;
  
      case PARSEOP_NAMESTRING:
 -        DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Value);
-+        Op->Asl.Value.String = (ACPI_STRING) Value;
-+        DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", (ACPI_STRING) Value);
++        Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value;
++        DbgPrint (ASL_PARSE_OUTPUT, "NAMESTRING->%s", Op->Asl.Value.String);
          break;
  
      case PARSEOP_EISAID:
 -        DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Value);
-+        Op->Asl.Value.String = (ACPI_STRING) Value;
-+        DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", (ACPI_STRING) Value);
++        Op->Asl.Value.String = (ACPI_STRING) (ACPI_SIZE) Value;
++        DbgPrint (ASL_PARSE_OUTPUT, "EISAID->%s", Op->Asl.Value.String);
          break;
  
      case PARSEOP_METHOD:
diff --git a/iasl.spec b/iasl.spec
index 07f0c77..797722c 100644
--- a/iasl.spec
+++ b/iasl.spec
@@ -1,6 +1,6 @@
 Name:           iasl
 Version:        20120913
-Release:        4%{?dist}
+Release:        5%{?dist}
 Summary:        Intel ASL compiler/decompiler
 
 Group:          Development/Languages
@@ -57,6 +57,9 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Wed Oct 17 2012 Paolo Bonzini <pbonzini at redhat.com> - 20120913-5
+- Fixed debian-unaligned.patch warnings for 32-bit arches
+
 * Wed Oct 17 2012 Paolo Bonzini <pbonzini at redhat.com> - 20120913-4
 - Incorporated Debian patches for endian-cleanliness
   (http://lists.acpica.org/pipermail/devel/2010-July/000159.html);


More information about the scm-commits mailing list