From: Len Brown Subject: [PATCH 085/122] ACPICA: Fix wrong resource descriptor length for 64-bit build Date: Thu, 23 Oct 2008 02:38:59 -0400 Message-ID: <9db4fcd99f7ef886ded97cd26a8642c70fbe34df.1224743917.git.len.brown@intel.com> References: <1224743976-31033-1-git-send-email-lenb@kernel.org> Return-path: Received: from vms044pub.verizon.net ([206.46.252.44]:38944 "EHLO vms044pub.verizon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753006AbYJWGoT (ORCPT ); Thu, 23 Oct 2008 02:44:19 -0400 Received: from localhost.localdomain ([96.237.168.40]) by vms044.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0K9600KZWIPH3KY1@vms044.mailsrvcs.net> for linux-acpi@vger.kernel.org; Thu, 23 Oct 2008 01:44:12 -0500 (CDT) In-reply-to: <1224743976-31033-1-git-send-email-lenb@kernel.org> In-reply-to: References: Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: linux-acpi@vger.kernel.org Cc: Bob Moore , Lin Ming , Andi Kleen , Len Brown From: Bob Moore The "minimal" descriptors such as EndTag are calculated as 12 bytes long, but the actual length in the internal descriptor is 16 because of the round-up to 8 on 64-bit build. http://www.acpica.org/bugzilla/show_bug.cgi?id=728 Signed-off-by: Bob Moore Signed-off-by: Lin Ming Signed-off-by: Andi Kleen Signed-off-by: Len Brown --- include/acpi/actypes.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/acpi/actypes.h b/include/acpi/actypes.h index 4ea4f40..73d6b1c 100644 --- a/include/acpi/actypes.h +++ b/include/acpi/actypes.h @@ -1225,8 +1225,8 @@ struct acpi_resource { #pragma pack() -#define ACPI_RS_SIZE_MIN 12 #define ACPI_RS_SIZE_NO_DATA 8 /* Id + Length fields */ +#define ACPI_RS_SIZE_MIN (u32) ACPI_ROUND_UP_TO_NATIVE_WORD (12) #define ACPI_RS_SIZE(type) (u32) (ACPI_RS_SIZE_NO_DATA + sizeof (type)) #define ACPI_NEXT_RESOURCE(res) (struct acpi_resource *)((u8 *) res + res->length) -- 1.5.5.1