Bug 5124

Summary: Build broken (in mach-es7000) without CONFIG_ACPI
Product: ACPI Reporter: Richard Perrin (rcp)
Component: OtherAssignee: Len Brown (lenb)
Status: CLOSED CODE_FIX    
Severity: blocking CC: acpi-bugzilla, bunk, protasnb
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.13-rc7 Subsystem:
Regression: --- Bisected commit-id:
Attachments: Config file which breaks 2.6.13-rc7 build
Corrections to es7000 platform code for non-ACPI build
Corrections to es7000 platform code for non-ACPI build (updated)

Description Richard Perrin 2005-08-24 10:02:30 UTC
Most recent kernel where this bug did not occur:
Did not occur on 2.6.11.11, no others tested

Problem Description:
Kernel will not build with "CONFIG_X86_GENERICARCH=y" and "CONFIG_ACPI not set".
Output from make:
[...]
  CC      arch/i386/mach-generic/../mach-es7000/es7000plat.o
In file included from arch/i386/mach-es7000/es7000plat.c:42:
arch/i386/mach-es7000/es7000.h:82: error: field `id' has incomplete type
arch/i386/mach-es7000/es7000.h:88: error: field `Header' has incomplete type
arch/i386/mach-es7000/es7000plat.c: In function `parse_unisys_oem':
arch/i386/mach-es7000/es7000plat.c:154: error: `es7000_rename_gsi' undeclared
(first use in this function)
arch/i386/mach-es7000/es7000plat.c:154: error: (Each undeclared identifier is
reported only once
arch/i386/mach-es7000/es7000plat.c:154: error: for each function it appears in.)
arch/i386/mach-es7000/es7000plat.c: In function `find_unisys_acpi_oem_table':
arch/i386/mach-es7000/es7000plat.c:168: warning: implicit declaration of
function `acpi_find_rsdp'
arch/i386/mach-es7000/es7000plat.c:170: error: dereferencing pointer to
incomplete type
arch/i386/mach-es7000/es7000plat.c:172: error: dereferencing pointer to
incomplete type
arch/i386/mach-es7000/es7000plat.c:175: warning: implicit declaration of
function `__acpi_map_table'
arch/i386/mach-es7000/es7000plat.c:175: error: invalid application of `sizeof'
to an incomplete type
arch/i386/mach-es7000/es7000plat.c:179: error: dereferencing pointer to
incomplete type
arch/i386/mach-es7000/es7000plat.c:179: error: invalid application of `sizeof'
to an incomplete type
arch/i386/mach-es7000/es7000plat.c:181: error: dereferencing pointer to
incomplete type
arch/i386/mach-es7000/es7000plat.c:185: error: dereferencing pointer to
incomplete type
arch/i386/mach-es7000/es7000plat.c:188: error: dereferencing pointer to
incomplete type
arch/i386/mach-es7000/es7000plat.c:194: error: invalid application of `sizeof'
to an incomplete type
arch/i386/mach-es7000/es7000plat.c:197: error: dereferencing pointer to
incomplete type
arch/i386/mach-es7000/es7000plat.c:198: error: dereferencing pointer to
incomplete type
arch/i386/mach-es7000/es7000plat.c:201: warning: implicit declaration of
function `acpi_table_print'
arch/i386/mach-es7000/es7000plat.c:202: error: dereferencing pointer to
incomplete type
arch/i386/mach-es7000/es7000plat.c:204: error: dereferencing pointer to
incomplete type
make[2]: *** [arch/i386/mach-generic/../mach-es7000/es7000plat.o] Error 1
make[1]: *** [arch/i386/mach-generic/../mach-es7000] Error 2
make: *** [arch/i386/mach-generic] Error 2

Changing the config to include CONFIG_ACPI=y will cause build of this file to
succeed. Full build has not been attempted.

Steps to reproduce:
1) cp attached config file to kernel-top-level/.config
2) make
Comment 1 Richard Perrin 2005-08-24 10:05:19 UTC
Created attachment 5746 [details]
Config file which breaks 2.6.13-rc7 build
Comment 2 Natalie Protasevich 2005-08-25 21:34:51 UTC
Created attachment 5768 [details]
Corrections to es7000 platform code for non-ACPI build

I think this patch will correct problems with the build. 
Thanks,
--Natalie
Comment 3 Natalie Protasevich 2005-08-26 10:07:12 UTC
Created attachment 5771 [details]
Corrections to es7000 platform code for non-ACPI build (updated)

Updated the patch, since Len noted there is no more CONFIG_ACPI_BOOT. Replaced
it with CONFIG_ACPI.
Thanks,
--Natalie
Comment 4 Adrian Bunk 2006-04-11 00:41:19 UTC
The fix was included in 2.6.17-rc1.