Linux 2.4.21-pre7 acpi warning fix

Maciej Soltysiak (solt@dns.toxicfilms.tv)
Sat, 5 Apr 2003 17:08:33 +0200 (CEST)


Hi,

Shortly.
To fix this:
evevent.c: In function `acpi_ev_gpe_dispatch':
evevent.c:803: warning: cast to pointer from integer of different size

I recommend this patch.

Regards,
Maciej

diff -Nru linux-2.4.20.orig/drivers/acpi/events/evevent.c linux-2.4.20/drivers/acpi/events/evevent.c
--- linux-2.4.20.orig/drivers/acpi/events/evevent.c 2003-04-05 17:05:20.000000000 +0200
+++ linux-2.4.20/drivers/acpi/events/evevent.c 2003-04-05 16:59:55.000000000 +0200
@@ -800,7 +800,7 @@
*/
else if (gpe_info.method_handle) {
if (ACPI_FAILURE(acpi_os_queue_for_execution (OSD_PRIORITY_GPE,
- acpi_ev_asynch_execute_gpe_method, (void*) (u64)gpe_number))) {
+ acpi_ev_asynch_execute_gpe_method, (void*) (u32)gpe_number))) {
/*
* Shoudn't occur, but if it does report an error. Note that
* the GPE will remain disabled until the ACPI Core Subsystem
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/