From: Al Viro <viro@ZenIV.linux.org.uk>
To: kernel-janitors@vger.kernel.org
Subject: Re: [uml:for-linus-3.6-rc1 9/13] arch/um/kernel/ptrace.c:178:32: warning: ignoring return value of '
Date: Thu, 02 Aug 2012 12:42:47 +0000 [thread overview]
Message-ID: <20120802124247.GK6481@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20120802033621.GA11442@localhost>
On Thu, Aug 02, 2012 at 11:36:21AM +0800, Fengguang Wu wrote:
> Hi Al,
>
> There are new compile warnings show up in
>
> tree: git://git.kernel.org/pub/scm/linux/kernel/git/rw/uml.git for-linus-3.6-rc1
> head: b070989aeb47ccdfe56d95e046bd317baa47f4fa
> commit: 1bfa2317b21750f739b59ab6df2c8efb12875045 [9/13] um: split syscall_trace(), pass pt_regs to it
> config: um-defconfig (attached as .config)
>
> All error/warnings:
>
> arch/um/kernel/ptrace.c: In function 'syscall_trace_enter':
> arch/um/kernel/ptrace.c:178:32: warning: ignoring return value of 'tracehook_report_syscall_entry', declared with attribute warn_unused_result [-Wunused-result]
>
> vim +178 arch/um/kernel/ptrace.c
> 175 if (!test_thread_flag(TIF_SYSCALL_TRACE))
> 176 return;
> 177
> > 178 tracehook_report_syscall_entry(regs);
> 179 }
That's OK - it just needs a followup that will propagate the return value to caller
of syscall_trace_enter() (i.e. handle_syscall()) and make it skip the actual
syscall if tracehook_report_syscall_entry() has returned non-zero. We didn't
have that functionality (= skipping the syscall if tracer resumes the tracee
from the first PTRACE_SYSCALL with PTRACE_CONT/PTRACE_SYSCALL simulating
the delivery of fatal signal), so it's not a regression. Just the stuff that
hadn't been hooked up yet.
prev parent reply other threads:[~2012-08-02 12:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-02 3:36 [uml:for-linus-3.6-rc1 9/13] arch/um/kernel/ptrace.c:178:32: warning: ignoring return value of 'trac Fengguang Wu
2012-08-02 12:42 ` 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=20120802124247.GK6481@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).