Linux 2.4.21-pre7 acpi warning fix

From: Maciej Soltysiak (solt@dns.toxicfilms.tv)
Date: Sat Apr 05 2003 - 10:08:33 EST


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/



This archive was generated by hypermail 2b29 : Mon Apr 07 2003 - 22:00:26 EST