Re: 2.6.4-rc2-mm1

From: Thomas Schlichter
Date: Mon Mar 08 2004 - 15:12:02 EST


Hi,

the bk-acpi.patch leads to following warning:

In file included from include/asm/fixmap.h:18,
from arch/i386/kernel/time_hpet.c:17:
include/asm/acpi.h: In function `__acpi_acquire_global_lock':
include/asm/acpi.h:72: Warnung: implicit declaration of function `cmpxchg'

The attached patch fixes it by including <asm/system.h>.

Best regards
Thomas Schlichter
--- linux-2.6.4-rc2-mm1/include/asm-i386/acpi.h.orig 2004-03-08 14:18:31.000000000 +0100
+++ linux-2.6.4-rc2-mm1/include/asm-i386/acpi.h 2004-03-08 14:55:21.000000000 +0100
@@ -28,6 +28,8 @@

#ifdef __KERNEL__

+#include <asm/system.h>
+
#define COMPILER_DEPENDENT_INT64 long long
#define COMPILER_DEPENDENT_UINT64 unsigned long long