Commit 782d7a21 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Tony Luck

ia64: annotate a switch fallthrough in ia64_do_signal

Also reindent the switch statement to use the normal kernel style
while at it.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lkml.kernel.org/r/20190812065524.19959-2-hch@lst.deSigned-off-by: default avatarTony Luck <tony.luck@intel.com>
parent c5e5c48c
...@@ -363,19 +363,19 @@ ia64_do_signal (struct sigscratch *scr, long in_syscall) ...@@ -363,19 +363,19 @@ ia64_do_signal (struct sigscratch *scr, long in_syscall)
if (unlikely(restart)) { if (unlikely(restart)) {
switch (errno) { switch (errno) {
case ERESTART_RESTARTBLOCK: case ERESTART_RESTARTBLOCK:
case ERESTARTNOHAND: case ERESTARTNOHAND:
scr->pt.r8 = EINTR; scr->pt.r8 = EINTR;
/* note: scr->pt.r10 is already -1 */ /* note: scr->pt.r10 is already -1 */
break; break;
case ERESTARTSYS:
case ERESTARTSYS:
if ((ksig.ka.sa.sa_flags & SA_RESTART) == 0) { if ((ksig.ka.sa.sa_flags & SA_RESTART) == 0) {
scr->pt.r8 = EINTR; scr->pt.r8 = EINTR;
/* note: scr->pt.r10 is already -1 */ /* note: scr->pt.r10 is already -1 */
break; break;
} }
case ERESTARTNOINTR: /*FALLTHRU*/
case ERESTARTNOINTR:
ia64_decrement_ip(&scr->pt); ia64_decrement_ip(&scr->pt);
restart = 0; /* don't restart twice if handle_signal() fails... */ restart = 0; /* don't restart twice if handle_signal() fails... */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment