poweroff function in apm.c breaks on 2.3.26

Akira YOSHIYAMA (yosshy@tkf.att.ne.jp)
Sun, 07 Nov 1999 21:54:11 +0900


Hi,

I got error messages when making linux-2.3.26 like below:

---
make[2]: Entering directory `/usr/src/kernel-source-2.3.23/arch/i386/lib'
make[2]: Nothing to be done for `all_targets'.
make[2]: Leaving directory `/usr/src/kernel-source-2.3.23/arch/i386/lib'
make[1]: Leaving directory `/usr/src/kernel-source-2.3.23/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.o arch/i386/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o \
        fs/filesystems.a \
        net/network.a \
        drivers/block/block.a drivers/char/char.o drivers/misc/misc.o drivers/parport/parport.a drivers/net/net.a drivers/cdrom/cdrom.a drivers/pci/pci.a drivers/pnp/pnp.a drivers/video/video.a \
        /usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arch/i386/lib/lib.a \
        --end-group \
        -o vmlinux
arch/i386/kernel/kernel.o: In function `apm':
arch/i386/kernel/kernel.o(.text+0x2b21): undefined reference to `sysrq_power_off'
make: *** [vmlinux] Error 1
---

I think that `sysrq_power_off' specific codes in apm.c must be active only defined CONFIG_MAGIC_SYSRQ...

Thanks,

A. Yoshiyama <yosshy@debian.or.jp>

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/