On Wed, 27 Jul 2005 at 08:49:03 +0200, Michael Berger wrote:
> I would like to report following build error in Kernel 2.6.13-rc3 git
> current:
>
> gcc -m32 -Wp,-MD,init/.do_mounts_initrd.o.d -nostdinc -isystem
> /usr/lib/gcc-lib/i486-linux/3.3.5/include -D__KERNEL__ -Iinclude -Wall
> -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common
> -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float
> -mpreferred-stack-boundary=2 -march=i686 -mregparm=3
> -Iinclude/asm-i386/mach-default -DKBUILD_BASENAME=do_mounts_initrd
> -DKBUILD_MODNAME=mounts -c -o init/do_mounts_initrd.o
> init/do_mounts_initrd.c
> In file included from include/asm/unistd.h:426,
> from include/linux/unistd.h:9,
> from init/do_mounts_initrd.c:2:
> include/asm/ptrace.h: In function `user_mode_vm':
> include/asm/ptrace.h:67: error: `VM_MASK' undeclared (first use in this
> function)
> include/asm/ptrace.h:67: error: (Each undeclared identifier is reported
> only once
> include/asm/ptrace.h:67: error: for each function it appears in.)
> make[1]: *** [init/do_mounts_initrd.o] Error 1
> make: *** [init] Error 2
Andrew has already fixed this and sent it to Linus. And now I know to be
more careful when turning macros into inlines: a macro just sits there until
someone uses it while an inline function is always evaluated.
Fix:
diff -puN include/asm-i386/ptrace.h~user_mode_vm-build-fix include/asm-i386/ptrace.h
--- devel/include/asm-i386/ptrace.h~user_mode_vm-build-fix 2005-07-27 11:14:01.000000000 -0700
+++ devel-akpm/include/asm-i386/ptrace.h 2005-07-27 11:14:27.000000000 -0700
@@ -55,6 +55,9 @@ struct pt_regs {
#define PTRACE_SET_THREAD_AREA 26
#ifdef __KERNEL__
+
+#include <asm/vm86.h>
+
struct task_struct;
extern void send_sigtrap(struct task_struct *tsk, struct pt_regs *regs, int error_code);
__
Chuck
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
|
|