All of lore.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@ZenIV.linux.org.uk>
To: kernel-janitors@vger.kernel.org
Subject: Re: [signal:for-next 79/81] init/main.c:794:2: error: implicit declaration of function 'current_pt_r
Date: Fri, 12 Oct 2012 17:36:25 +0000	[thread overview]
Message-ID: <20121012173625.GI2616@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20121012164020.GC19120@localhost>

On Sat, Oct 13, 2012 at 12:40:20AM +0800, Fengguang Wu wrote:
> Hi Al,
> 
> FYI, kernel build failed on
> 
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/viro/signal.git for-next
> head:   4fa20776ca79059c34f4660c8bdb0d7c1603e872
> commit: f45a47e7f1d9668458ecd1e88b285c6348c5aa3e [79/81] x86, um: convert to saner kernel_execve() semantics
> config: um-defconfig # make ARCH=um defconfig
> 
> All error/warnings:
> 
> init/main.c: In function 'run_init_process':
> init/main.c:794:2: error: implicit declaration of function 'current_pt_regs' [-Werror=implicit-function-declaration]
> init/main.c:794:2: warning: passing argument 4 of 'do_execve' makes pointer from integer without a cast [enabled by default]
> In file included from include/linux/pid_namespace.h:4:0,
>                  from include/linux/perf_event.h:604,
>                  from include/linux/ftrace_event.h:8,
>                  from include/trace/syscall.h:6,
>                  from include/linux/syscalls.h:78,
>                  from init/main.c:16:
> include/linux/sched.h:2323:12: note: expected 'struct pt_regs *' but argument is of type 'int'
> cc1: some warnings being treated as errors
> --
> kernel/kmod.c: In function '____call_usermodehelper':
> kernel/kmod.c:221:2: error: implicit declaration of function 'current_pt_regs' [-Werror=implicit-function-declaration]
> kernel/kmod.c:221:2: warning: passing argument 4 of 'do_execve' makes pointer from integer without a cast [enabled by default]
> In file included from kernel/kmod.c:22:0:
> include/linux/sched.h:2323:12: note: expected 'struct pt_regs *' but argument is of type 'int'
> cc1: some warnings being treated as errors

Hmm... missing include, pulled indirectly by _very_ torturous ways on the
builds I've done.  I think the sanest way to handle that is explicit
include of ptrace.h in init/main.c, kernel/kmod.c and kernel/kthread.c.
The funny part is, full linux-next will build just fine, thanks to
changes in the current mainline.  Still, that's a bisection hazard we don't
need...  Fixed and pushed.

      reply	other threads:[~2012-10-12 17:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12 16:40 [signal:for-next 79/81] init/main.c:794:2: error: implicit declaration of function 'current_pt_regs' Fengguang Wu
2012-10-12 17:36 ` Al Viro [this message]

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=20121012173625.GI2616@ZenIV.linux.org.uk \
    --to=viro@zeniv.linux.org.uk \
    --cc=kernel-janitors@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.