Hi, I get the following error when running make: [root@rocky
pdcraid]# make cc -g -I/lib/modules/`uname -r`/build/include -O2 -march=i686 -fomit-frame-pointer -Wall -D__KERNEL__ -DMODULE
-DMODVERSIONS -Wno-unused
-include /lib/modules/`uname -r`/build/include/linux/modversions.h
-c -o ataraid.o ataraid.c In file included from ataraid.c:29: /lib/modules/2.4.2-2/build/include/linux/swap.h:105:
parse error before `*' /lib/modules/2.4.2-2/build/include/linux/swap.h:
In function `is_page_shared': /lib/modules/2.4.2-2/build/include/linux/swap.h:180:
warning: implicit declaration of function `PageReserved' /lib/modules/2.4.2-2/build/include/linux/swap.h:182:
warning: implicit declaration of function `page_count' /lib/modules/2.4.2-2/build/include/linux/swap.h:183:
warning: implicit declaration of function `PageSwapCache' /lib/modules/2.4.2-2/build/include/linux/swap.h:184:
dereferencing pointer to incomplete type /lib/modules/2.4.2-2/build/include/linux/swap.h:
In function `__free_pte': /lib/modules/2.4.2-2/build/include/linux/swap.h:305:
warning: implicit declaration of function `pte_page' /lib/modules/2.4.2-2/build/include/linux/swap.h:305:
warning: initialization makes pointer from integer without a cast /lib/modules/2.4.2-2/build/include/linux/swap.h:306:
`mem_map_R93e88035' undeclared (first use in this function) /lib/modules/2.4.2-2/build/include/linux/swap.h:306:
(Each undeclared identifier is reported only once /lib/modules/2.4.2-2/build/include/linux/swap.h:306:
for each function it appears in.) /lib/modules/2.4.2-2/build/include/linux/swap.h:306:
`max_mapnr_R01139ffc' undeclared (first use in this function) /lib/modules/2.4.2-2/build/include/linux/swap.h:312:
warning: implicit declaration of function `pte_dirty' /lib/modules/2.4.2-2/build/include/linux/swap.h:312:
dereferencing pointer to incomplete type /lib/modules/2.4.2-2/build/include/linux/swap.h:313:
warning: implicit declaration of function `set_page_dirty' /lib/modules/2.4.2-2/build/include/linux/swap.h:314:
warning: implicit declaration of function `__free_page' In file included from
/lib/modules/2.4.2-2/build/include/linux/slab.h:14, from
/lib/modules/2.4.2-2/build/include/linux/proc_fs.h:5, from
/lib/modules/2.4.2-2/build/include/linux/ide.h:15, from
ataraid.c:31: /lib/modules/2.4.2-2/build/include/linux/mm.h:
At top level: /lib/modules/2.4.2-2/build/include/linux/mm.h:14:
`max_mapnr_R01139ffc' used prior to declaration In file included from /lib/modules/2.4.2-2/build/include/linux/mm.h:23, from
/lib/modules/2.4.2-2/build/include/linux/slab.h:14, from
/lib/modules/2.4.2-2/build/include/linux/proc_fs.h:5, from
/lib/modules/2.4.2-2/build/include/linux/ide.h:15, from
ataraid.c:31: /lib/modules/2.4.2-2/build/include/asm/pgtable.h:273:
warning: `pte_dirty' was declared implicitly `extern'
and later `static' /lib/modules/2.4.2-2/build/include/linux/swap.h:312:
warning: previous declaration of `pte_dirty' In file included from
/lib/modules/2.4.2-2/build/include/linux/slab.h:14, from
/lib/modules/2.4.2-2/build/include/linux/proc_fs.h:5, from
/lib/modules/2.4.2-2/build/include/linux/ide.h:15, from
ataraid.c:31: /lib/modules/2.4.2-2/build/include/linux/mm.h:188:
warning: `set_page_dirty' was declared implicitly
`extern' and later `static' /lib/modules/2.4.2-2/build/include/linux/swap.h:313:
warning: previous declaration of `set_page_dirty' /lib/modules/2.4.2-2/build/include/linux/mm.h:188:
warning: type mismatch with previous implicit declaration /lib/modules/2.4.2-2/build/include/linux/swap.h:313:
warning: previous implicit declaration of `set_page_dirty' /lib/modules/2.4.2-2/build/include/linux/mm.h:188:
warning: `set_page_dirty' was previously implicitly
declared to return `int' /lib/modules/2.4.2-2/build/include/linux/mm.h:332:
`mem_map_R93e88035' used prior to declaration make: *** [ataraid.o] Error 1 What could be the problem? -Devon |