* modular ide + fixed legacy/ppc doesn't work when non modular on ppc
@ 2004-01-21 22:54 Arkadiusz Miskiewicz
[not found] ` <200401220015.21827.bzolnier@elka.pw.edu.pl>
0 siblings, 1 reply; 3+ messages in thread
From: Arkadiusz Miskiewicz @ 2004-01-21 22:54 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz, Andrew Morton; +Cc: linux-kernel
I'm trying to compile 2.6.2-rc1 with fixed modular ide patch (Bartlomiej patch + legacy/ppc fixes posted here)
(http://cvs.pld-linux.org/cgi-bin/cvsweb/SOURCES/2.6.1-modular-ide-lkml.patch?rev=1.1.2.1)
but with non-modular config.
Unfortunately on PPC:
[builder@an2 linux-2.6.2-rc1]$ make bzImage SUBDIRS=drivers/ide V=1
make -f scripts/Makefile.build obj=scripts
mkdir -p .tmp_versions
make -f scripts/Makefile.build obj=arch/ppc/kernel arch/ppc/kernel/asm-offsets.s
make[1]: `arch/ppc/kernel/asm-offsets.s' is up to date.
make -f scripts/Makefile.build obj=drivers/ide
make -f scripts/Makefile.build obj=drivers/ide/arm
make -f scripts/Makefile.build obj=drivers/ide/legacy
make -f scripts/Makefile.build obj=drivers/ide/pci
gcc -Wp,-MD,drivers/ide/ppc/.pmac.o.d -nostdinc -iwithprefix include -D__KERNEL__ -Iinclude -Iarch/ppc -D__KERNEL__ -Iinclude -Iarch/ppc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Iarch/ppc -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring -O2 -fomit-frame-pointer -DKBUILD_BASENAME=pmac -DKBUILD_MODNAME=ide_core -c -o drivers/ide/ppc/pmac.o drivers/ide/ppc/pmac.c
drivers/ide/ppc/pmac.c:49:24: ide-timing.h: No such file or directory
drivers/ide/ppc/pmac.c: In function `set_timings_udma_ata6':
drivers/ide/ppc/pmac.c:716: warning: implicit declaration of function `ide_timing_find_mode'
drivers/ide/ppc/pmac.c:716: warning: initialization makes pointer from integer without a cast
drivers/ide/ppc/pmac.c:721: error: dereferencing pointer to incomplete type
drivers/ide/ppc/pmac.c: In function `pmac_ide_dma_check':
drivers/ide/ppc/pmac.c:1756: error: `XFER_MWDMA' undeclared (first use in this function)
drivers/ide/ppc/pmac.c:1756: error: (Each undeclared identifier is reported only once
drivers/ide/ppc/pmac.c:1756: error: for each function it appears in.)
drivers/ide/ppc/pmac.c:1758: error: `XFER_UDMA' undeclared (first use in this function)
drivers/ide/ppc/pmac.c:1760: error: `XFER_UDMA_66' undeclared (first use in this function)
drivers/ide/ppc/pmac.c:1762: error: `XFER_UDMA_100' undeclared (first use in this function)
drivers/ide/ppc/pmac.c:1765: warning: implicit declaration of function `ide_find_best_mode'
make[1]: *** [drivers/ide/ppc/pmac.o] Error 1
-I is missing, so fix goes here (tested)
[builder@an2 linux-2.6.2-rc1]$ diff -u drivers/ide/Makefile~ drivers/ide/Makefile
--- drivers/ide/Makefile~ 2004-01-21 20:24:01.000000000 +0000
+++ drivers/ide/Makefile 2004-01-21 22:44:35.000000000 +0000
@@ -8,6 +8,9 @@
# In the future, some of these should be built conditionally.
#
# First come modules that register themselves with the core
+
+EXTRA_CFLAGS += -Idrivers/ide
+
obj-$(CONFIG_BLK_DEV_IDE) += pci/
ide-core-y += ide.o ide-default.o ide-io.o ide-iops.o ide-lib.o ide-probe.o \
--
Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org, 1024/3DB19BBD, JID: arekm.jabber.org, PLD/Linux
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: modular ide + fixed legacy/ppc doesn't work when non modular on ppc
[not found] ` <200401220015.21827.bzolnier@elka.pw.edu.pl>
@ 2004-01-21 23:25 ` Arkadiusz Miskiewicz
2004-01-22 4:29 ` Sam Ravnborg
0 siblings, 1 reply; 3+ messages in thread
From: Arkadiusz Miskiewicz @ 2004-01-21 23:25 UTC (permalink / raw)
To: Bartlomiej Zolnierkiewicz; +Cc: linux-kernel
Dnia czw 22. stycznia 2004 00:15, Bartlomiej Zolnierkiewicz napisał:
> Thanks, I have alternative fix.
>
> --- linux/drivers/ide/ppc/pmac.c.orig 2004-01-09 07:59:08.000000000 +0100
> +++ linux/drivers/ide/ppc/pmac.c 2004-01-22 00:10:11.550746088 +0100
> @@ -46,7 +46,7 @@
> #include <asm/sections.h>
> #include <asm/irq.h>
>
> -#include "ide-timing.h"
> +#include "../ide-timing.h"
>
> extern void ide_do_request(ide_hwgroup_t *hwgroup, int masked_irq);
Works fine, thanks!
> --bart
--
Arkadiusz Miśkiewicz CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org, 1024/3DB19BBD, JID: arekm.jabber.org, PLD/Linux
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: modular ide + fixed legacy/ppc doesn't work when non modular on ppc
2004-01-21 23:25 ` Arkadiusz Miskiewicz
@ 2004-01-22 4:29 ` Sam Ravnborg
0 siblings, 0 replies; 3+ messages in thread
From: Sam Ravnborg @ 2004-01-22 4:29 UTC (permalink / raw)
To: Arkadiusz Miskiewicz; +Cc: Bartlomiej Zolnierkiewicz, linux-kernel
On Thu, Jan 22, 2004 at 12:25:07AM +0100, Arkadiusz Miskiewicz wrote:
> Dnia czw 22. stycznia 2004 00:15, Bartlomiej Zolnierkiewicz napisa?:
> > Thanks, I have alternative fix.
> >
> > --- linux/drivers/ide/ppc/pmac.c.orig 2004-01-09 07:59:08.000000000 +0100
> > +++ linux/drivers/ide/ppc/pmac.c 2004-01-22 00:10:11.550746088 +0100
> > @@ -46,7 +46,7 @@
> > #include <asm/sections.h>
> > #include <asm/irq.h>
> >
> > -#include "ide-timing.h"
> > +#include "../ide-timing.h"
Please don't do that. It is much better to tell cc where to look,
instead of this.
So please use the solutin posted by Arkadiusz.
When using seperate output directory with kbuild the latter makes
life much easier.
Sam
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-01-22 4:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-21 22:54 modular ide + fixed legacy/ppc doesn't work when non modular on ppc Arkadiusz Miskiewicz
[not found] ` <200401220015.21827.bzolnier@elka.pw.edu.pl>
2004-01-21 23:25 ` Arkadiusz Miskiewicz
2004-01-22 4:29 ` Sam Ravnborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox