All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-core] rtdm over x86_64
@ 2007-02-03 13:13 Paul
  2007-02-03 15:08 ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Paul @ 2007-02-03 13:13 UTC (permalink / raw)
  To: xenomai-core

[-- 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;

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-02-03 23:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-03 13:13 [Xenomai-core] rtdm over x86_64 Paul
2007-02-03 15:08 ` 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

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.