Skip to contentSkip to conversation

modular ide + fixed legacy/ppc doesn't work when non modular on ppc

PATCH Arkadiusz Miskiewicz 2 participants 3 messages Jan 21, 2004 – Jan 22, 2004 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

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

ide/Makefile 2004-01-21 22:44:35.000000000 +0000 renamed from ide/Makefile~ 2004-01-21 20:24:01.000000000 +0000 +3 -0
@@ -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 \
Signature · 2 lines
Arkadiusz Miśkiewicz     CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org, 1024/3DB19BBD, JID: arekm.jabber.org, PLD/Linux

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

drivers/ide/ppc/pmac.c line 51

Quoted 12 lines · Bartlomiej Zolnierkiewicz

Thanks, I have alternative fix.

drivers/ide/ppc/pmac.c renamed from drivers/ide/ppc/pmac.c.orig +1 -1
@@ -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!

Quoted 1 line
drivers/ide/ppc/pmac.c renamed from drivers/ide/ppc/pmac.c.orig +0 -1
--bart
Signature · 2 lines
Arkadiusz Miśkiewicz     CS at FoE, Wroclaw University of Technology
arekm.pld-linux.org, 1024/3DB19BBD, JID: arekm.jabber.org, PLD/Linux
#3 lore raw
Quoted 11 lines · Arkadiusz Miskiewicz

Dnia czw 22. stycznia 2004 00:15, Bartlomiej Zolnierkiewicz napisa?:

drivers/ide/ppc/pmac.c line 49

Quoted 10 lines

Thanks, I have alternative fix.

drivers/ide/ppc/pmac.c renamed from drivers/ide/ppc/pmac.c.orig +1 -1
@@ -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