Blame SOURCES/asllookup-miscompare.patch

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