Re: [2.3.99-pre2final] compile error: ipc/shm.c

From: Adam (adam@eax.com)
Date: Sun Mar 19 2000 - 18:14:19 EST


On Sun, 19 Mar 2000, Peter Blomgren wrote:

> make[2]: Entering directory `/usr/src/linux/ipc'
> gcc -D__KERNEL__ -I/usr/src/linux/include -D__SMP__ -Wall \
> -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -DCPU=386 \
> -march=i386 -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 for `shm_fs_type.owner' is not constant

it was already lklm. apply this simple patch (c&p from some other email)
worked for me.

> --- shm.c~ Sun Mar 19 14:19:12 2000
> +++ shm.c Sun Mar 19 14:38:40 2000
> @@ -42,6 +42,7 @@
> #include <linux/pagemap.h>
> #include <linux/proc_fs.h>
> #include <linux/highmem.h>
> +#include <linux/module.h>

-
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:28 EST