lkml.org 
[lkml]   [2000]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [2.3.99-pre2final] compile error: ipc/shm.c

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/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.159 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site