]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] acpi compile fix
authorAndrew Morton <akpm@digeo.com>
Fri, 4 Apr 2003 12:12:01 +0000 (04:12 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Fri, 4 Apr 2003 12:12:01 +0000 (04:12 -0800)
ACPI is performing a spin_lock() on a `void *'.  That's OK when spin_lock is
implemented via an inline function.  But when it is implemented via macros
it causes compile-time breakage.

So cast it to the right type. It really should be fixed not to use opaque
handles, though.

drivers/acpi/osl.c

index 8d078b297c3d77cbea748328677c5629c11298cd..dab6100c2ae6e8679ec075648ea9e77195e28d84 100644 (file)
@@ -736,7 +736,7 @@ acpi_os_acquire_lock (
        if (flags & ACPI_NOT_ISR)
                ACPI_DISABLE_IRQS();
 
-       spin_lock(handle);
+       spin_lock((spinlock_t *)handle);
 
        return_VOID;
 }
@@ -755,7 +755,7 @@ acpi_os_release_lock (
        ACPI_DEBUG_PRINT ((ACPI_DB_MUTEX, "Releasing spinlock[%p] from %s level\n", handle,
                ((flags & ACPI_NOT_ISR) ? "non-interrupt" : "interrupt")));
 
-       spin_unlock(handle);
+       spin_unlock((spinlock_t *)handle);
 
        if (flags & ACPI_NOT_ISR)
                ACPI_ENABLE_IRQS();