diff options
Diffstat (limited to 'cpukit/sapi')
-rw-r--r-- | cpukit/sapi/include/rtems/chain.h | 10 | ||||
-rw-r--r-- | cpukit/sapi/src/chainprotected.c | 4 |
2 files changed, 2 insertions, 12 deletions
diff --git a/cpukit/sapi/include/rtems/chain.h b/cpukit/sapi/include/rtems/chain.h index 01d743f972..887623be7f 100644 --- a/cpukit/sapi/include/rtems/chain.h +++ b/cpukit/sapi/include/rtems/chain.h @@ -763,20 +763,10 @@ bool rtems_chain_append_with_empty_check( * @retval true The chain was empty before the prepend. * @retval false The chain contained at least one node before the prepend. */ -#if defined( RTEMS_SMP ) bool rtems_chain_prepend_with_empty_check( rtems_chain_control *chain, rtems_chain_node *node ); -#else -RTEMS_INLINE_ROUTINE bool rtems_chain_prepend_with_empty_check( - rtems_chain_control *chain, - rtems_chain_node *node -) -{ - return _Chain_Prepend_with_empty_check( chain, node ); -} -#endif /** * @brief Tries to get the first @a node and check if the @a chain is empty diff --git a/cpukit/sapi/src/chainprotected.c b/cpukit/sapi/src/chainprotected.c index 51842f4d13..087c8e7fb8 100644 --- a/cpukit/sapi/src/chainprotected.c +++ b/cpukit/sapi/src/chainprotected.c @@ -104,8 +104,6 @@ bool rtems_chain_append_with_empty_check( return was_empty; } -#if defined( RTEMS_SMP ) - bool rtems_chain_prepend_with_empty_check( rtems_chain_control *chain, rtems_chain_node *node @@ -121,6 +119,8 @@ bool rtems_chain_prepend_with_empty_check( return was_empty; } +#if defined( RTEMS_SMP ) + bool rtems_chain_get_with_empty_check( rtems_chain_control *chain, rtems_chain_node **node |