Skip to contentSkip to conversation

linux-2.4.1-pre9/include/linux/acpi.h broke acpid compilation

PATCH In review Adam J. Richter 2 participants 2 messages Jan 21, 2001 ACPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Signature · 4 lines
Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
[email protected]     \ /                  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."
include/linux/acpi.h +2 -2
@@ -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
#1 lore raw
Quoted 8 lines · Adam J. Richter

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 [email protected] on December 29 but have received no response so far.

Signature · 5 lines
	http://www.penguinpowered.com/~vii
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/