From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <199604171119.HAA12665@pegasus2.rtp.avanticorp.com> Date: Wed, 17 Apr 96 7:19:40 EDT From: Jim_Nance@avanticorp.com Subject: MD device on alphas Hi All, I decided to try compiling 1.3.89 with some features I don't normally use since Linus asked for testing. I found that there were some problems compiling the md driver, and I have included patches for this below. Most of the problems are due to the fact that I am cross compiling from Digital Unix, and the code was including things from the system include files rather than the linux include files. I did have to add an include of asm/segment.h to md.c in order to get rid of references to functions like put_fs_long which makes me wonder if something is wrong somewhere else since the x86 version does not seem to need this. Anyway, here are the patches. Please note that I have no way of testing the executable, I just wanted to make sure it compiled. Jim diff -ru linux/drivers/block/md.c linux.fixed/drivers/block/md.c --- linux/drivers/block/md.c Fri Apr 12 02:49:33 1996 +++ linux.fixed/drivers/block/md.c Wed Apr 17 06:50:02 1996 @@ -34,7 +34,7 @@ #ifdef CONFIG_KERNELD #include #endif -#include +#include #define MAJOR_NR MD_MAJOR #define MD_DRIVER diff -ru linux/include/linux/md.h linux.fixed/include/linux/md.h --- linux/include/linux/md.h Sat Mar 2 14:21:51 1996 +++ linux.fixed/include/linux/md.h Wed Apr 17 06:54:09 1996 @@ -18,6 +18,7 @@ #ifndef _MD_H #define _MD_H +#include #include #include #include @@ -60,7 +61,7 @@ #ifdef __KERNEL__ #include -#include +#include #include #include