Bug 9070 - The kernel doesn't compile: error with acpi_sleep_prepare
Summary: The kernel doesn't compile: error with acpi_sleep_prepare
Status: CLOSED PATCH_ALREADY_AVAILABLE
Alias: None
Product: ACPI
Classification: Unclassified
Component: Power-Sleep-Wake (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: acpi_power-sleep-wake
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-25 13:11 UTC by François Valenduc
Modified: 2008-06-13 21:18 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.23-rc8
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
configuration file for kernel 2.6.23-rc8 (39.12 KB, text/plain)
2007-09-25 13:12 UTC, François Valenduc
Details

Description François Valenduc 2007-09-25 13:11:09 UTC
Most recent kernel where this bug did not occur: 2.6.23.rc7
Distribution: Gentoo
Hardware Environment:Acer Travelmate 4001Lmi, Intel Centrino 1.5 GHz
Software Environment: Tuxonice 2.2.10.3
Problem Description: The kernel doesn't compile

Steps to reproduce: try to compile the kernel

When I try to compile the kernel 2.6.23-rc8, the compilation almost at the very end. I get the following error messages:

  LD      .tmp_vmlinux1
drivers/built-in.o: In function `acpi_power_off_prepare':
main.c:(.text+0x4825c): undefined reference to `acpi_sleep_prepare'
drivers/built-in.o: In function `acpi_hibernation_prepare':
main.c:(.text+0x4826b): undefined reference to `acpi_sleep_prepare'
make: *** [.tmp_vmlinux1] Error 1
zsh: exit 2     LC_ALL=C make all


I have try to compile with and without tuxonice but it doesn't change anything.

Does anybody have an idea to solve the problem ?
Thanks in advance for your help.
Comment 1 François Valenduc 2007-09-25 13:12:06 UTC
Created attachment 12941 [details]
configuration file for kernel 2.6.23-rc8
Comment 2 Randy Dunlap 2007-09-25 13:26:22 UTC
Patch at http://lkml.org/lkml/2007/9/23/15  should fix it.
We need to get that merged.
Comment 3 François Valenduc 2007-09-26 12:06:34 UTC
Indeed, the patch you suggested solves the problem.
Thanks for your help.
Comment 4 Len Brown 2008-06-13 21:18:35 UTC
shipped in 2.6.23-rc9.  closed.

commit 2f3f22269bdf702311342c5d106dfdd7347d1c3e
Author: Alexey Starikovskiy <astarikovskiy@suse.de>
Date:   Mon Sep 24 14:33:21 2007 +0200

    ACPI: suspend: build-fix for CONFIG_SUSPEND=n and CONFIG_HIBERNATION=y
    
    This fixes compilation with CONFIG_SUSPEND unset and CONFIG_HIBERNATION set
    (raf. http://marc.info/?l=linux-acpi&m=119055289723895&w=4).
    
    Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
    Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
    Signed-off-by: Len Brown <len.brown@intel.com>

Note You need to log in before you can comment on or make changes to this bug.