From: Al Viro <viro@ZenIV.linux.org.uk>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>,
Andrew Morton <akpm@linux-foundation.org>,
Tony Breeds <tony@bakeyournoodle.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/5] h8300/signal: Fix typo "statis"
Date: Sat, 2 Jun 2012 22:37:28 +0100 [thread overview]
Message-ID: <20120602213728.GO30000@ZenIV.linux.org.uk> (raw)
In-Reply-To: <1338669339-23214-3-git-send-email-geert@linux-m68k.org>
On Sat, Jun 02, 2012 at 10:35:36PM +0200, Geert Uytterhoeven wrote:
> The keyword is "static", not "statis":
>
> arch/h8300/kernel/signal.c:455:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
> arch/h8300/kernel/signal.c: In function 'do_notify_resume':
> arch/h8300/kernel/signal.c:511:3: error: implicit declaration of function 'do_signal' [-Werror=implicit-function-declaration]
> arch/h8300/kernel/signal.c: At top level:
> arch/h8300/kernel/signal.c:414:1: warning: 'handle_signal' defined but not used [-Wunused-function]
>
> Introduced in commit 7ae4e32a65148353db3458e3eb87117f25620ac5 ("h8300: switch
> to saved_sigmask-based sigsuspend/rt_sigsuspend")
Sigh... This one I don't even have a cross-toolchain for (ICEs galore),
nevermind the setup to test on ;-/
FWIW, there's a potential unpleasant bug in h8300 signal handling -
the check for return to user mode is in the wrong place; doing that
in do_signal() is pointless, since if you ever get there with both
TIF_SIGPENDING set and regs such that we are about to return to kernel,
you'll just keep looping.
That check belongs in the loop in entry.S, if anywhere (i.e. if that loop
can be reached when returning to kernel mode; AFAICS, the only plausible
way for that to happen is failing kernel_execve() leaving us on the exit
from system_call, about to return to kernel). It might or might not be
worth doing more or less what arm does in its kernel_execve(); then that
check could be simply removed. In any case, do_signal() is definitely the
wrong place for that check - if anything, it needs to be done before hitting
do_notify_resume, breaking the loop if we are returning to kernel.
next prev parent reply other threads:[~2012-06-02 21:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-02 20:35 [PATCH 0/5] h8300 fixes Geert Uytterhoeven
2012-06-02 20:35 ` [PATCH 1/5] h8300/pgtable: Add missing #include <asm-generic/pgtable.h> Geert Uytterhoeven
2012-06-02 20:35 ` [PATCH 2/5] h8300/signal: Fix typo "statis" Geert Uytterhoeven
2012-06-02 21:37 ` Al Viro [this message]
2012-06-04 0:13 ` Tony Breeds
2012-06-02 20:35 ` [PATCH 3/5] h8300/time: Add missing #include <asm/irq_regs.h> Geert Uytterhoeven
2012-06-02 20:35 ` [PATCH 4/5] h8300/uaccess: Remove assignment to __gu_val in unhandled case of get_user() Geert Uytterhoeven
2012-06-02 20:35 ` [PATCH 5/5] h8300/uaccess: Add mising __clear_user() Geert Uytterhoeven
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=20120602213728.GO30000@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--cc=akpm@linux-foundation.org \
--cc=geert@linux-m68k.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tony@bakeyournoodle.com \
--cc=ysato@users.sourceforge.jp \
/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®