Project

General

Profile

Actions

Bug #981

closed

latest -HEAD kernel cannot be built

Added by rumcic almost 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

After the changes to sys/dev/disk/nata the kernel cannot be built. The error
is:
cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -std=c99 -g -nostdinc -I. -Iinclude -I/usr/src/sys -I/usr/src/sys/../include -I/usr/obj/usr/src/sys/MYPRECIOUS -I"/usr/src/sys/dev/acpica5" -I"/usr/src/sys/contrib/dev/acpica-unix-20061109/include" -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include
opt_global.h -finline-limit=8000 --param inline-unit-growth=100 --param
large-function-growth=1000 -fno-common -ffreestanding -mpreferred-stack-boundary=2 -fno-stack-protector -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 /usr/src/sys/dev/disk/nata/ata-chipset.c
/usr/src/sys/dev/disk/nata/ata-chipset.c: In function 'ata_ahci_ident':
/usr/src/sys/dev/disk/nata/ata-chipset.c:465:
error: 'PCIP_STORAGE_SATA_AHCI_1_0' undeclared (first use in this function)
/usr/src/sys/dev/disk/nata/ata-chipset.c:465: error: (Each undeclared
identifier is reported only once
/usr/src/sys/dev/disk/nata/ata-chipset.c:465: error: for each function it
appears in.)
/usr/src/sys/dev/disk/nata/ata-chipset.c: In function 'ata_ati_chipinit':
/usr/src/sys/dev/disk/nata/ata-chipset.c:1398:
error: 'PCIP_STORAGE_SATA_AHCI_1_0' undeclared (first use in this function)

I cannot find 'PCIP_STORAGE_SATA_AHCI_1_0' defined anywhere in the source tree
(only used in ata-chipset.c), but PCIP_STORAGE_SATA_AHCI is defined in
sys/bus/pci/pcireg.h. With the following patch the kernel does compile, but
I'm not sure if using 'PCIP_STORAGE_SATA_AHCI_1_0' was intentional (maybe it
should have a different value than PCIP_STORAGE_SATA_AHCI) or not.
--
Regards,
Rumko


Files

neki (908 Bytes) neki rumcic, 03/24/2008 01:33 PM
Actions

Also available in: Atom PDF