From: Paul <paul_c@domain.hid>
To: xenomai-core <xenomai@xenomai.org>
Subject: [Xenomai-core] rtdm over x86_64
Date: Sat, 3 Feb 2007 13:13:20 +0000 [thread overview]
Message-ID: <200702031313.20104.paul_c@domain.hid> (raw)
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
Hi Jan
Just a small patch to get the ball rolling with an x86_64 support..
The attached resolves a compile time warning of:
kernel/xenomai/skins/rtdm/core.c: In function ‘_rtdm_ioctl’:
kernel/xenomai/skins/rtdm/core.c:408: warning: comparison is always false due
to limited range of data type
Regards, Paul.
[-- Attachment #2: rtdm_skin.patch --]
[-- Type: text/x-diff, Size: 1244 bytes --]
Index: include/rtdm/rtdm.h
===================================================================
--- include/rtdm/rtdm.h (revision 2105)
+++ include/rtdm/rtdm.h (working copy)
@@ -248,7 +248,7 @@ int _rtdm_open (rtdm_user_info_t *
int _rtdm_socket (rtdm_user_info_t *user_info, int protocol_family,
int socket_type, int protocol);
int _rtdm_close (rtdm_user_info_t *user_info, int fd, int forced);
-int _rtdm_ioctl (rtdm_user_info_t *user_info, int fd, int request, ...);
+int _rtdm_ioctl (rtdm_user_info_t *user_info, int fd, unsigned int request, ...);
ssize_t _rtdm_read (rtdm_user_info_t *user_info, int fd, void *buf,
size_t nbyte);
ssize_t _rtdm_write (rtdm_user_info_t *user_info, int fd, const void *buf,
Index: ksrc/skins/rtdm/core.c
===================================================================
--- ksrc/skins/rtdm/core.c (revision 2105)
+++ ksrc/skins/rtdm/core.c (working copy)
@@ -393,7 +393,7 @@ do {
} while (0)
-int _rtdm_ioctl(rtdm_user_info_t *user_info, int fd, int request, ...)
+int _rtdm_ioctl(rtdm_user_info_t *user_info, int fd, unsigned int request, ...)
{
va_list args;
void *arg;
next reply other threads:[~2007-02-03 13:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-03 13:13 Paul [this message]
2007-02-03 15:08 ` [Xenomai-core] rtdm over x86_64 Jan Kiszka
2007-02-03 15:18 ` Jan Kiszka
2007-02-03 15:45 ` Philippe Gerum
2007-02-03 17:51 ` Jan Kiszka
2007-02-03 23:32 ` Paul
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=200702031313.20104.paul_c@domain.hid \
--to=paul_c@domain.hid \
--cc=xenomai@xenomai.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 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.