From 99686994db763eeaeceeafb61a2e0ddb90898fc0 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 4 Apr 2003 04:12:01 -0800 Subject: [PATCH] acpi compile fix 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'drivers') diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c index 8d078b297c3d..dab6100c2ae6 100644 --- a/drivers/acpi/osl.c +++ b/drivers/acpi/osl.c @@ -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(); -- cgit v1.2.3