Skip to contentSkip to conversation

make libata for 2.4 compile on alpha

PATCH In review Stefan Knoblich 3 participants 3 messages Dec 26, 2004 – Jan 3, 2005 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make libata for 2.4 compile on alpha

Hi,

linux-2.4.28 + 2.4.28-rc3-libata1 patch won't compile on alpha, attached patch fixes that.

Error messages:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mno-fp-regs
-ffixed-8 -mcpu=ev5 -Wa,-mev6
-nostdinc -iwithprefix include -DKBUILD_BASENAME=libata_core -DEXPORT_SYMTAB
-c libata-core.c
In file included from /usr/src/linux-2.4.28/include/linux/highmem.h:5,

                 from libata-core.c:31:

/usr/src/linux-2.4.28/include/asm/pgalloc.h: In function `flush_tlb_other':
/usr/src/linux-2.4.28/include/asm/pgalloc.h:63: error: dereferencing pointer to incomplete type /usr/src/linux-2.4.28/include/asm/pgalloc.h:63: warning: implicit declaration of function smp_processor_id' /usr/src/linux-2.4.28/include/asm/pgalloc.h: In function flush_icache_user_range':
/usr/src/linux-2.4.28/include/asm/pgalloc.h:84: error: dereferencing pointer to incomplete type /usr/src/linux-2.4.28/include/asm/pgalloc.h:84: error: `VM_EXEC' undeclared (first use in this function) /usr/src/linux-2.4.28/include/asm/pgalloc.h:84: error: (Each undeclared identifier is reported only once /usr/src/linux-2.4.28/include/asm/pgalloc.h:84: error: for each function it appears in.)
/usr/src/linux-2.4.28/include/asm/pgalloc.h:85: error: dereferencing pointer to incomplete type /usr/src/linux-2.4.28/include/asm/pgalloc.h:86: error: `current' undeclared (first use in this function) /usr/src/linux-2.4.28/include/asm/pgalloc.h:89: error: dereferencing pointer to incomplete type
/usr/src/linux-2.4.28/include/asm/pgalloc.h: In function `ev4_flush_tlb_current_page':
<SNIP>

drivers/scsi/libata-core.c renamed from drivers/scsi/libata-core.c.orig +1 -0
@@ -28,6 +28,7 @@
 #include <linux/pci.h>
 #include <linux/init.h>
 #include <linux/list.h>
+#include <linux/mm.h>
 #include <linux/highmem.h>
 #include <linux/spinlock.h>
 #include <linux/blkdev.h>
#1 lore raw

Hi Jeff!

Got that one?

Quoted 51 lines · Stefan Knoblich

Hi,

linux-2.4.28 + 2.4.28-rc3-libata1 patch won't compile on alpha, attached patch fixes that.

Error messages:

gcc -D__KERNEL__ -I/usr/src/linux-2.4.28/include -Wall -Wstrict-prototypes

(quoted diff) +0 -3
-Wno-trigraphs -O2
 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mno-fp-regs 
-ffixed-8 -mcpu=ev5 -Wa,-mev6
 -nostdinc -iwithprefix include -DKBUILD_BASENAME=libata_core  -DEXPORT_SYMTAB 
-c libata-core.c

In file included from /usr/src/linux-2.4.28/include/linux/highmem.h:5,

                 from libata-core.c:31:

/usr/src/linux-2.4.28/include/asm/pgalloc.h: In function `flush_tlb_other':
/usr/src/linux-2.4.28/include/asm/pgalloc.h:63: error: dereferencing pointer to incomplete type /usr/src/linux-2.4.28/include/asm/pgalloc.h:63: warning: implicit declaration of function smp_processor_id' /usr/src/linux-2.4.28/include/asm/pgalloc.h: In function flush_icache_user_range':
/usr/src/linux-2.4.28/include/asm/pgalloc.h:84: error: dereferencing pointer to incomplete type /usr/src/linux-2.4.28/include/asm/pgalloc.h:84: error: `VM_EXEC' undeclared (first use in this function) /usr/src/linux-2.4.28/include/asm/pgalloc.h:84: error: (Each undeclared identifier is reported only once /usr/src/linux-2.4.28/include/asm/pgalloc.h:84: error: for each function it appears in.)
/usr/src/linux-2.4.28/include/asm/pgalloc.h:85: error: dereferencing pointer to incomplete type /usr/src/linux-2.4.28/include/asm/pgalloc.h:86: error: `current' undeclared (first use in this function) /usr/src/linux-2.4.28/include/asm/pgalloc.h:89: error: dereferencing pointer to incomplete type
/usr/src/linux-2.4.28/include/asm/pgalloc.h: In function `ev4_flush_tlb_current_page':
<SNIP>

drivers/scsi/libata-core.c renamed from drivers/scsi/libata-core.c.orig +1 -0
@@ -28,6 +28,7 @@
 #include <linux/pci.h>
 #include <linux/init.h>
 #include <linux/list.h>
+#include <linux/mm.h>
 #include <linux/highmem.h>
 #include <linux/spinlock.h>
 #include <linux/blkdev.h>
#2 lore raw
Quoted 3 lines · Marcelo Tosatti

Hi Jeff!

Got that one?

yep, just need to push it to you.

Jeff