lkml.org 
[lkml]   [2001]   [Nov]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Compile problem in vmalloc.h
Em Tue, Nov 20, 2001 at 07:21:33PM +0100, Erik Jansson escreveu:
> Hi all!
>
> I've looked and asked around for a while about this, but I can't seem to
> find the answer. Maybe you know what's up.
>
> I'm compiling a driver that's not part of the kernel tree (but it's GPL
> anyway). It compiles nicely against the 2.4.8 kernel tree, but fails
> with both 2.4.10 and 2.4.14. Those are the only ones that I've tried
> though.
>
> I'm using clean sources (nothing patched, make mrproper; make clean;
> make config; make bzImage etc).
>
> I'm using gcc version 2.95.4 20010902 (Debian prerelease).
>
> The error I get looks like this:
>
> gcc -c -o ./src/proc.o ./src/proc.c -D__KERNEL__ -DMODULE -O2 -Wall
> -Wstrict-pro
> totypes -Wpointer-arith -I /usr/src/linux/include -DCAN_DEBUG
> In file included from /usr/src/linux/include/asm/io.h:46,
> from src/../include/main.h:11,
> from ./src/proc.c:25:
> /usr/src/linux/include/linux/vmalloc.h: In function `vmalloc':
> /usr/src/linux/include/linux/vmalloc.h:35: `boot_cpu_data_Rsmp_0657d037'

Try adding this:

#include <linux/module.h>

to your driver, of course before the '#include <linux/vmalloc.h>' line 8)

- Arnaldo
-
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/

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