From: Richard Weinberger <richard@sigma-star.at>
To: Nikolaus Funk <nikolaus.funk@sigmatek.at>,
xenomai@lists.linux.dev,
Florian Bezdeka <florian.bezdeka@siemens.com>
Cc: Richard Weinberger <richard@nod.at>
Subject: Re: [PATCH 5/5] arm: dovetail: Helper functions for signal frame setup and restore
Date: Tue, 08 Apr 2025 15:18:26 +0200 [thread overview]
Message-ID: <17455452.87JKscXggJ@anvil> (raw)
In-Reply-To: <609d917110db9ea8549a6cf37115554c712e44a8.camel@siemens.com>
On Dienstag, 8. April 2025 15:12 Florian Bezdeka wrote:
> The different code style here (and below) is by intention?
Too many different persons have worked on this and things got
copy&pasted.
> >
> > +
> > + frame = (struct rt_sigframe __user *)regs->ARM_sp;
> > +
> > + pagefault_disable();
> > +
> > + if (!access_ok(frame, sizeof (*frame))) {
> > + goto out_pfe;
> > + }
> > +
> > + if (restore_sigframe(regs, &frame->sig)) {
> > + goto out_pfe;
> > + }
> > +
> > + if (copy_from_user(&sig, &frame->info.si_signo, sizeof(sig)))
> > + goto out_pfe;
>
> Hm... Switched the style again... I assume checkpatch would have
> complained... No?
checkpatch issues a warning, so it is a matter of taste.
But I agree, we should be consistent. :-S
Thanks,
//richard
--
sigma star gmbh | Eduard-Bodem-Gasse 6, 6020 Innsbruck, AUT UID/VAT Nr:
ATU 66964118 | FN: 374287y
next prev parent reply other threads:[~2025-04-08 13:18 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-08 12:34 [RFC PATCH 0/5] Dovetail: Real-time Exception Handling Nikolaus Funk
2025-04-08 12:34 ` [PATCH 1/5] arm: dovetail: Fix user mode UND exception handling Nikolaus Funk
2025-04-08 12:34 ` [PATCH 2/5] x86: dovetail: Helper functions for signal frame setup and restore Nikolaus Funk
2025-04-08 12:34 ` [PATCH 3/5] arm64: dovetail: Allow early return from traps Nikolaus Funk
2025-04-08 12:58 ` Florian Bezdeka
2025-04-08 13:24 ` Richard Weinberger
2025-04-08 17:06 ` Jan Kiszka
2025-04-09 9:47 ` Richard Weinberger
2025-04-09 14:25 ` Jan Kiszka
2025-04-08 12:34 ` [PATCH 4/5] arm64: dovetail: Helper functions for signal frame setup and restore Nikolaus Funk
2025-04-08 13:05 ` Florian Bezdeka
2025-04-08 13:16 ` Richard Weinberger
2025-04-08 12:34 ` [PATCH 5/5] arm: " Nikolaus Funk
2025-04-08 13:12 ` Florian Bezdeka
2025-04-08 13:18 ` Richard Weinberger [this message]
2025-04-08 16:58 ` [RFC PATCH 0/5] Dovetail: Real-time Exception Handling Jan Kiszka
2025-04-08 17:55 ` Richard Weinberger
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=17455452.87JKscXggJ@anvil \
--to=richard@sigma-star.at \
--cc=florian.bezdeka@siemens.com \
--cc=nikolaus.funk@sigmatek.at \
--cc=richard@nod.at \
--cc=xenomai@lists.linux.dev \
/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.