mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chuck Ebbert <76306.1226@compuserve.com>
To: Michael Berger <mikeb1@t-online.de>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>
Subject: Re: Build error in Kernel 2.6.13-rc3 git current
Date: Wed, 27 Jul 2005 16:20:23 -0400	[thread overview]
Message-ID: <200507271623_MC3-1-A5BE-312B@compuserve.com> (raw)

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

             reply	other threads:[~2005-07-27 20:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-27 20:20 Chuck Ebbert [this message]
     [not found] <4uNU4-4Ii-15@gated-at.bofh.it>
2005-07-27 17:11 ` Michael Berger
  -- strict thread matches above, loose matches on Subject: below --
2005-07-27  6:49 Michael Berger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200507271623_MC3-1-A5BE-312B@compuserve.com \
    --to=76306.1226@compuserve.com \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikeb1@t-online.de \
    --cc=torvalds@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®