Re: 2.3.99-pre2: error in make bzImage @ ipc/shm.c

From: Brett W. McCoy (bmccoy@chapelperilous.net)
Date: Thu Mar 23 2000 - 12:52:47 EST


On Thu, 23 Mar 2000, Alexandre Hautequest wrote:

> make[2]: Entering directory `/usr/src/linux-2.3.99-pre2/ipc'
> gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer
> -pipe -mpreferred-stack-boundary=2 -DCPU=586 -march=k6 -fno-strict-aliasing -c -o shm.o shm.c
> shm.c:142: `THIS_MODULE' undeclared here (not in a function)
> shm.c:142: initializer element is not constant
> shm.c:142: (near initialization for `shm_fs_type.owner')
> make[2]: *** [shm.o] Error 1
> make[2]: Leaving directory `/usr/src/linux-2.3.99-pre2/ipc'
> make[1]: *** [first_rule] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.3.99-pre2/ipc'
> make: *** [_dir_ipc] Error 2

Add include <linux/module.h> to the top of ipc/shm.c

Brett W. McCoy
                                              http://www.chapelperilous.net
---------------------------------------------------------------------------
"I don't know why, but first C programs tend to look a lot worse than
first programs in any other language (maybe except for fortran, but then
I suspect all fortran programs look like `firsts')"
(By Olaf Kirch)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:38 EST