acpica-tools/asllookup-ppc64.patch
Al Stone ffc6571aab Update to 20161222 upstream sources
Signed-off-by: Al Stone <ahs3@redhat.com>
2017-01-09 17:43:59 -07:00

24 lines
909 B
Diff

Make sure AslLookup operates correctly on ppc64, too
From: Al Stone <ahs3@redhat.com>
---
source/compiler/asllookup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
Index: acpica-unix2-20161222/source/compiler/asllookup.c
===================================================================
--- acpica-unix2-20161222.orig/source/compiler/asllookup.c
+++ acpica-unix2-20161222/source/compiler/asllookup.c
@@ -176,7 +176,8 @@ LkIsObjectUsed (
* We ignore the predefined methods since often, not
* all arguments are needed or used.
*/
- if ((Node->Name.Ascii[0] != '_') &&
+ ACPI_MOVE_32_TO_32(&tmp.Ascii, Node->Name.Ascii);
+ if ((tmp.Ascii[0] != '_') &&
(!(MethodArgs[i].Flags & ASL_ARG_REFERENCED)))
{
sprintf (MsgBuffer, "Arg%u", i);