Skip to contentSkip to conversation

2.6.12-rc5-git3 ia64 acpi build breakage.

DISCUSSION Dave Jones 2 participants 2 messages May 29, 2005 ACPI

lore
Share & tools
lore

Dave Jones

author
#0 lore raw

This is puzzling.
In file included from drivers/firmware/pcdp.c:18:
drivers/firmware/pcdp.h:48: error: field 'addr' has incomplete type drivers/firmware/pcdp.c: In function 'setup_serial_console':
drivers/firmware/pcdp.c:27: error: 'ACPI_ADR_SPACE_SYSTEM_MEMORY' undeclared (first use in this function) drivers/firmware/pcdp.c:27: error: (Each undeclared identifier is reported only once drivers/firmware/pcdp.c:27: error: for each function it appears in.)

First, I thought this was a simple missing
#include <acpi/actypes.h>

in drivers/firmware/pcdp.c

But it still spat out the same warning.

Dave

#1 lore raw
Quoted 4 lines · Dave Jones

In file included from drivers/firmware/pcdp.c:18:
drivers/firmware/pcdp.h:48: error: field 'addr' has incomplete type drivers/firmware/pcdp.c: In function 'setup_serial_console':
drivers/firmware/pcdp.c:27: error: 'ACPI_ADR_SPACE_SYSTEM_MEMORY' undeclared (first use in this function)

This _should_ fix it.

include/linux/acpi.h +2 -0
@@ -25,6 +25,8 @@
 #ifndef _LINUX_ACPI_H
 #define _LINUX_ACPI_H
 
+#include <linux/config.h>
+
 #ifdef	CONFIG_ACPI
 
 #ifndef _LINUX