[PATCH] acpi.h needs <linux/init.h>
Linux Kernel Mailing List <[email protected]> Thu, 10 Mar 2005 10:51:36 +0000
| Newsgroups | gmane.linux.kernel.commits.2-4 |
|---|---|
| Message-ID | <[email protected]> |
ChangeSet 1.1572, 2005/03/10 07:51:36-03:00, [email protected] [PATCH] acpi.h needs <linux/init.h> the recent acpi merge in 2.4-BK broke compilation of a few external patches (eg: iptable_string), because it declares check_acpi_pci() as void __init, while linux/init.h is not included. Here is a trivial patch which solves the problem. acpi.h | 2 ++ 1 files changed, 2 insertions(+) diff -Nru a/include/asm-i386/acpi.h b/include/asm-i386/acpi.h --- a/include/asm-i386/acpi.h 2005-03-11 14:01:41 -08:00 +++ b/include/asm-i386/acpi.h 2005-03-11 14:01:41 -08:00 @@ -28,6 +28,8 @@ #ifdef __KERNEL__ +#include <linux/init.h> + #define COMPILER_DEPENDENT_INT64 long long #define COMPILER_DEPENDENT_UINT64 unsigned long long