* [PATCH] linux-2.4.1-pre9/include/linux/acpi.h broke acpid compilation
@ 2001-01-21 8:23 Adam J. Richter
2001-01-21 16:05 ` John Fremlin
0 siblings, 1 reply; 2+ messages in thread
From: Adam J. Richter @ 2001-01-21 8:23 UTC (permalink / raw)
To: acpi, linux-kernel; +Cc: torvalds
[-- Attachment #1: Type: text/plain, Size: 741 bytes --]
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."
[-- Attachment #2: acpi.diff --]
[-- Type: text/plain, Size: 360 bytes --]
--- 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] linux-2.4.1-pre9/include/linux/acpi.h broke acpid compilation
2001-01-21 8:23 [PATCH] linux-2.4.1-pre9/include/linux/acpi.h broke acpid compilation Adam J. Richter
@ 2001-01-21 16:05 ` John Fremlin
0 siblings, 0 replies; 2+ messages in thread
From: John Fremlin @ 2001-01-21 16:05 UTC (permalink / raw)
To: Adam J. Richter; +Cc: acpi, linux-kernel, torvalds
"Adam J. Richter" <adam@yggdrasil.com> writes:
> 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.
I sent a similar patch to the maintainer andy_henroid@yahoo.com on
December 29 but have received no response so far.
--
http://www.penguinpowered.com/~vii
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-01-21 16:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-21 8:23 [PATCH] linux-2.4.1-pre9/include/linux/acpi.h broke acpid compilation Adam J. Richter
2001-01-21 16:05 ` John Fremlin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox