[PATCH] Fix a cast of a 32-bit int to a pointer in ACPI

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix a cast of a 32-bit int to a pointer in ACPI to avoid a compiler warning.

This problem was introduced by the following patch:

	commit 1f3ee987b56d6354cdbbe8faa90079886a464b9c
	Author: Bob Moore <robert.moore@xxxxxxxxx>
	Date:   Tue Jun 10 13:42:13 2008 +0800

	    ACPICA: Eliminate acpi_native_uint type

	    No longer needed; replaced mostly with u32, but also acpi_size
	    where a type that changes 32/64 bit on 32/64-bit platforms is
	    required.

	    Signed-off-by: Bob Moore <robert.moore@xxxxxxxxx>
	    Signed-off-by: Lin Ming <ming.m.lin@xxxxxxxxx>
	    Signed-off-by: Len Brown <len.brown@xxxxxxxxx>

Signed-off-by: David Howells <dhowells@xxxxxxxxxx>
---

 drivers/acpi/executer/exconfig.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)


diff --git a/drivers/acpi/executer/exconfig.c b/drivers/acpi/executer/exconfig.c
index b8ee161..4f7edce 100644
--- a/drivers/acpi/executer/exconfig.c
+++ b/drivers/acpi/executer/exconfig.c
@@ -96,7 +96,8 @@ acpi_ex_add_table(u32 table_index,
 
 	/* Install the new table into the local data structures */
 
-	obj_desc->reference.object = ACPI_CAST_PTR(void, table_index);
+	obj_desc->reference.object =
+		ACPI_CAST_PTR(void, (unsigned long) table_index);
 
 	/* Add the table to the namespace */
 

--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux