diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-09-08 10:37:05 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2022-09-19 09:09:22 +0200 |
commit | a660e9dc47c522fe1a1b7f6e4af1795dbd6c20b1 (patch) | |
tree | 390cdbf3680f7549dc30fa78747f733c6010cb1e /cpukit/include/rtems/termiostypes.h | |
parent | validation: Test deadlock detection special case (diff) | |
download | rtems-a660e9dc47c522fe1a1b7f6e4af1795dbd6c20b1.tar.bz2 |
Do not use RTEMS_INLINE_ROUTINE
Directly use "static inline" which is available in C99 and later. This brings
the RTEMS implementation closer to standard C.
Close #3935.
Diffstat (limited to '')
-rw-r--r-- | cpukit/include/rtems/termiostypes.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/include/rtems/termiostypes.h b/cpukit/include/rtems/termiostypes.h index 33fcf4b2da..67f3461b1f 100644 --- a/cpukit/include/rtems/termiostypes.h +++ b/cpukit/include/rtems/termiostypes.h @@ -129,7 +129,7 @@ void rtems_termios_device_lock_release_default( * string persistent throughout the life time of this lock. The name is only * used if profiling is enabled. */ -RTEMS_INLINE_ROUTINE void rtems_termios_device_context_initialize( +static inline void rtems_termios_device_context_initialize( rtems_termios_device_context *context, const char *name ) @@ -448,7 +448,7 @@ rtems_status_code rtems_termios_device_install( * * @param[in] tty The Termios control. */ -RTEMS_INLINE_ROUTINE void *rtems_termios_get_device_context( +static inline void *rtems_termios_get_device_context( const rtems_termios_tty *tty ) { @@ -462,7 +462,7 @@ RTEMS_INLINE_ROUTINE void *rtems_termios_get_device_context( * @param[in] lock_context The local interrupt lock context for an acquire and * release pair. */ -RTEMS_INLINE_ROUTINE void rtems_termios_device_lock_acquire( +static inline void rtems_termios_device_lock_acquire( rtems_termios_device_context *context, rtems_interrupt_lock_context *lock_context ) @@ -477,7 +477,7 @@ RTEMS_INLINE_ROUTINE void rtems_termios_device_lock_acquire( * @param[in] lock_context The local interrupt lock context for an acquire and * release pair. */ -RTEMS_INLINE_ROUTINE void rtems_termios_device_lock_release( +static inline void rtems_termios_device_lock_release( rtems_termios_device_context *context, rtems_interrupt_lock_context *lock_context ) |