From: Philippe Gerum <rpm@xenomai.org>
To: Emmanuel Pacaud <emmanuel.pacaud@lapp.in2p3.fr>
Cc: xenomai@lists.linux.dev
Subject: Re: Port of a RTAI based code
Date: Tue, 03 Jun 2025 08:58:40 +0200 [thread overview]
Message-ID: <87ecw148gv.fsf@xenomai.org> (raw)
In-Reply-To: <87ldqakw63.fsf@xenomai.org> (Philippe Gerum's message of "Mon, 02 Jun 2025 17:20:04 +0200")
Philippe Gerum <rpm@xenomai.org> writes:
>
> long oob_ioctl(..., unsigned in cmd, long arg)
> {
> long this_task_index;
> unsigned long flags;
> int ret;
>
> switch (cmd) {
> case IOC_TASK_WAIT: /* Or whatever you name it. */
> this_task_index = arg;
> if (this_task_index >= NR_TASKS)
- if (this_task_index >= NR_TASKS)
+ if ((unsigned long)this_task_index >= NR_TASKS)
--
Philippe.
prev parent reply other threads:[~2025-06-03 6:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-28 16:13 Port of a RTAI based code Emmanuel Pacaud
2025-05-30 7:55 ` Jan Kiszka
2025-05-30 20:51 ` Emmanuel Pacaud
2025-05-31 5:35 ` Jan Kiszka
2025-06-02 15:20 ` Philippe Gerum
2025-06-03 6:58 ` Philippe Gerum [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=87ecw148gv.fsf@xenomai.org \
--to=rpm@xenomai.org \
--cc=emmanuel.pacaud@lapp.in2p3.fr \
--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.