lkml.org 
[lkml]   [2001]   [Jan]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] linux-2.4.1-pre9/include/linux/acpi.h broke acpid compilation
	linux-2.4.1-pre9/include/linux/acpi.h contains declares the
routine acpi_get_rsdp_ptr returning the kernel-only type "u64", without
bracketing the declaration in "#ifdef __KERNEL__...#endif". Consequently,
a user level program that attempts to include <linux/acpi.h>, such as
acpid, gets a compilation error. The following patch fix the problem
by stretching an earlier "#ifdef __KERNEL__...#endif" area to cover
the acpi_get_rsdp_ptr declaration.

--
Adam J. Richter __ ______________ 4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com \ / San Jose, California 95129-1034
+1 408 261-6630 | g g d r a s i l United States of America
fax +1 408 261-6631 "Free Software For The Rest Of Us."
--- linux-2.4.1-pre9/include/linux/acpi.h Fri Dec 29 14:07:24 2000
+++ linux/include/linux/acpi.h Sun Jan 21 00:14:59 2001
@@ -26,9 +26,9 @@
#ifdef __KERNEL__
#include <linux/sched.h>
#include <linux/wait.h>
-#endif /* __KERNEL__ */

-u64 acpi_get_rsdp_ptr(void);
+extern u64 acpi_get_rsdp_ptr(void);
+#endif /* __KERNEL__ */

/*
* System sleep states
\
 
 \ /
  Last update: 2005-03-22 13:12    [W:0.035 / U:0.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site