* 2.5.6-pre2: ide.c doesn't build if no IDE chipsets chosen
@ 2002-03-01 1:08 Alessandro Suardi
0 siblings, 0 replies; only message in thread
From: Alessandro Suardi @ 2002-03-01 1:08 UTC (permalink / raw)
To: linux-kernel
gcc -D__KERNEL__ -I/usr/src/linux-2.5.6-pre2/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fomit-frame-pointer -fno-strict-aliasing -fno-common -pipe -mpreferred-stack-boundary=2 -march=i686 -DKBUILD_BASENAME=ide -DEXPORT_SYMTAB -c ide.c
ide.c:161: parse error before "ide_pio_timings"
ide.c:161: warning: type defaults to `int' in declaration of `ide_pio_timings'
ide.c:162: warning: braces around scalar initializer
ide.c:162: warning: (near initialization for `ide_pio_timings[0]')
ide.c:162: warning: excess elements in scalar initializer
ide.c:162: warning: (near initialization for `ide_pio_timings[0]')
ide.c:162: warning: excess elements in scalar initializer
ide.c:162: warning: (near initialization for `ide_pio_timings[0]')
ide.c:163: warning: braces around scalar initializer
ide.c:163: warning: (near initialization for `ide_pio_timings[1]')
ide.c:163: warning: excess elements in scalar initializer
ide.c:163: warning: (near initialization for `ide_pio_timings[1]')
etc. etc.
Turns out ide_pio_timings_t is only defined within a
#ifdef CONFIG_BLK_DEV_IDE_MODES block. That one seems to only kick
in if I select at least one if the IDE chipsets. Mine is a PIIX4,
but the configuration help seems to suggest I only set it if I
suspect BIOS problems so I can hand-tune the chipset via hdparm;
"if unsure, say N". I've been doing so for more time than I can
remember without any issue and a spiffy hdparm output - this is
the current 2.4.19-pre1 from which I built 2.5.6-pre2:
[root@dolphin root]# hdparm -tT /dev/hda
/dev/hda:
Timing buffer-cache reads: 128 MB in 0.80 seconds =160.00 MB/sec
Timing buffered disk reads: 64 MB in 3.99 seconds = 16.04 MB/sec
I now built the kernel after selecting PIIXn support, but is this
a bug in the dependencies or in the configuration help text for
the PIIXn chipsets ?
Thanks,
--alessandro
"If your heart is a flame burning brightly
you'll have light and you'll never be cold
And soon you will know that you just grow / You're not growing old"
(Husker Du, "Flexible Flyer")
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-03-01 1:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-01 1:08 2.5.6-pre2: ide.c doesn't build if no IDE chipsets chosen Alessandro Suardi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.