rtdm without CONFIG_XENO_OPT_PERVASIVE
PATCH 1/1 rtdm without CONFIG_XENO_OPT_PERVASIVE
Hi,
this fixes an unresolved symbol in xeno_rtdm whenCONFIG_XENO_OPT_PERVASIVE is switched off.
Jan
rtdm/device.c +6 -1
@@ -30,7 +30,6 @@#include <rtdm/device.h> #include <rtdm/proc.h> -#include <rtdm/syscall.h> #define SET_DEFAULT_OP (device, operation) \
@@ -68,6 +67,12 @@#endif /* CONFIG_SMP */ +int rtdm_no_support (void ) +{ +return -ENOSYS ; +} + +static inline int get_name_hash (const char *str,int limit,int hashkey_mask) {int hash =0 ;
rtdm/GNUmakefile.am +5 -2
@@ -10,9 +10,12 @@ device.c \ drvlib.c \ module.c \ - proc.c \ - syscall.c + proc.c +if CONFIG_XENO_OPT_PERVASIVE +libmodule_SRC += syscall.c +endif + include_HEADERS = \ rtdm.h \ rtdm_driver.h \
rtdm/device.h +2 -0
@@ -40,6 +40,8 @@extern struct list_head *rtdm_protocol_devices; +int rtdm_no_support (void ); +struct rtdm_device *get_named_device (const char *name);struct rtdm_device *get_protocol_device (int protocol_family,int socket_type);
rtdm/syscall.c +0 -6
@@ -26,12 +26,6 @@int __rtdm_muxid; -int rtdm_no_support (void ) -{ -return -ENOSYS ; -} - -static int sys_rtdm_fdcount (struct task_struct *curr,struct pt_regs *regs) {return fd_count;
rtdm/syscall.h +0 -2
@@ -46,8 +46,6 @@extern int __rtdm_muxid; -int rtdm_no_support (void ); -int __init rtdm_syscall_init (void );static inline void rtdm_syscall_cleanup (void )
Gilles Chanteperdrix
AppliedQuoted 4 lines · Jan Kiszka
Hi,
this fixes an unresolved symbol in
xeno_rtdmwhenCONFIG_XENO_OPT_PERVASIVEis switched off.
Applied, as well as its little brother for the posix skin. Thanks.
Signature · 1 line
Gilles Chanteperdrix.
Philippe Gerum
AppliedQuoted 5 lines · Jan Kiszka
Hi,
this fixes an unresolved symbol in
xeno_rtdmwhenCONFIG_XENO_OPT_PERVASIVEis switched off.
Applied, thanks.
Quoted 100 lines
Jan
------------------------------------------------------------------------
Index:
skins/rtdm/device.c
===================================================================rtdm/device.c +6
-1@@ -30,7 +30,6 @@#include <rtdm/device.h> #include <rtdm/proc.h> -#include <rtdm/syscall.h> #define SET_DEFAULT_OP (device, operation) \@@ -68,6 +67,12 @@#endif /* CONFIG_SMP */ +int rtdm_no_support (void ) +{ +return -ENOSYS ; +} + +static inline int get_name_hash (const char *str,int limit,int hashkey_mask) {int hash =0 ;Index: skins/rtdm/GNUmakefile.am
===================================================================rtdm/GNUmakefile.am +5
-2@@ -10,9 +10,12 @@ device.c \ drvlib.c \ module.c \ - proc.c \ - syscall.c + proc.c +if CONFIG_XENO_OPT_PERVASIVE +libmodule_SRC += syscall.c +endif + include_HEADERS = \ rtdm.h \ rtdm_driver.h \Index:
skins/rtdm/device.h
===================================================================rtdm/device.h +2
-0@@ -40,6 +40,8 @@extern struct list_head *rtdm_protocol_devices; +int rtdm_no_support (void ); +struct rtdm_device *get_named_device (const char *name);struct rtdm_device *get_protocol_device (int protocol_family,int socket_type);Index:
skins/rtdm/syscall.c
===================================================================rtdm/syscall.c +0
-6@@ -26,12 +26,6 @@int __rtdm_muxid; -int rtdm_no_support (void ) -{ -return -ENOSYS ; -} - -static int sys_rtdm_fdcount (struct task_struct *curr,struct pt_regs *regs) {return fd_count;Index:
skins/rtdm/syscall.h
===================================================================rtdm/syscall.h +0
-3@@ -46,8 +46,6 @@extern int __rtdm_muxid; -int rtdm_no_support (void ); -int __init rtdm_syscall_init (void );static inline void rtdm_syscall_cleanup (void ) ------------------------------------------------------------------------_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core
Signature · 1 line
Philippe.