Blame SOURCES/asllookup-miscompare.patch

025571
diff --git a/source/compiler/asllookup.c b/source/compiler/asllookup.c
025571
index fed35fd..cda5976 100644
025571
--- a/source/compiler/asllookup.c
025571
+++ b/source/compiler/asllookup.c
025571
@@ -122,6 +122,8 @@ LkIsObjectUsed (
025571
     ASL_METHOD_LOCAL        *MethodLocals;
025571
     ASL_METHOD_LOCAL        *MethodArgs;
025571
     UINT32                  i;
025571
+    ACPI_NAME_UNION         NodeName;
025571
+    ACPI_NAME_UNION         NextName;
025571
 
025571
 
025571
     if (Node->Type == ACPI_TYPE_METHOD)
025571
@@ -175,7 +177,8 @@ LkIsObjectUsed (
025571
                  * We ignore the predefined methods since often, not
025571
                  * all arguments are needed or used.
025571
                  */
025571
-                if ((Node->Name.Ascii[0] != '_') &&
025571
+                ACPI_MOVE_32_TO_32(&NodeName.Ascii, Node->Name.Ascii);
025571
+                if ((NodeName.Ascii[0] != '_') &&
025571
                     (!(MethodArgs[i].Flags & ASL_ARG_REFERENCED)))
025571
                 {
025571
                     sprintf (MsgBuffer, "Arg%u", i);
025571
@@ -228,8 +231,10 @@ LkIsObjectUsed (
025571
              * Issue a remark even if it is a reserved name (starts
025571
              * with an underscore).
025571
              */
025571
+            ACPI_MOVE_32_TO_32(&NodeName.Ascii, Node->Name.Ascii);
025571
+            ACPI_MOVE_32_TO_32(&NextName.Ascii, Next->Name.Ascii);
025571
             sprintf (MsgBuffer, "Name [%4.4s] is within a method [%4.4s]",
025571
-                Node->Name.Ascii, Next->Name.Ascii);
025571
+                NodeName.Ascii, NextName.Ascii);
025571
             AslError (ASL_REMARK, ASL_MSG_NOT_REFERENCED,
025571
                 LkGetNameOp (Node->Op), MsgBuffer);
025571
             return (AE_OK);