awe_ram.c

Heusden, Folkert van (f.v.heusden@ftr.nl)
Mon, 26 Feb 2001 17:31:10 +0100


Hi,

On http://helllabs.org/~claudio/awebd/awe_ram.c I found some code which
transforms the
RAM on an AWE32/64 into a block-device. I tried to compile it, but I did not
succeed.
The writer of this code doesn't respond to e-mails.
Anyone out there who has a clue what is going wrong with it? (using kernel
2.2.18)

Am getting the following errors:
bash-2.03# gcc -Wall -Wstrict-prototypes -Winline -O2 -fomit-frame-pointer
-I/usr/src/linux/include/ -c awe_ram.c -o awe_ram.o 2>&1 | more
In file included from /usr/src/linux/include/linux/sched.h:74,
from awe_ram.c:26:
/usr/src/linux/include/asm/processor.h:287: warning: `struct task_struct'
declared inside parameter list
/usr/src/linux/include/asm/processor.h:287: warning: its scope is only this
definition or declaration,
/usr/src/linux/include/asm/processor.h:287: warning: which is probably not
what you want.
/usr/src/linux/include/asm/processor.h:291: warning: `struct task_struct'
declared inside parameter list
In file included from /usr/src/linux/include/linux/blk.h:4,
from awe_ram.c:42:
/usr/src/linux/include/linux/blkdev.h:23: parse error before `kdev_t'
/usr/src/linux/include/linux/blkdev.h:23: warning: no semicolon at end of
struct or union
/usr/src/linux/include/linux/blkdev.h:36: parse error before `}'
/usr/src/linux/include/linux/blkdev.h:39: parse error before `dev'
/usr/src/linux/include/linux/blkdev.h:39: warning: function declaration
isn't a prototype
/usr/src/linux/include/linux/blkdev.h:55: parse error before `unsigned'
/usr/src/linux/include/linux/blkdev.h:55: warning: function declaration
isn't a prototype
/usr/src/linux/include/linux/blkdev.h:75: field `plug' has incomplete type
/usr/src/linux/include/linux/blkdev.h:94: parse error before `kdev_t'
/usr/src/linux/include/linux/blkdev.h:94: warning: function declaration
isn't a prototype
/usr/src/linux/include/linux/blkdev.h:96: parse error before `mddev'
/usr/src/linux/include/linux/blkdev.h:96: warning: function declaration
isn't a prototype
<etc.>

Greetings,
Folkert van Heusden.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/