diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-23 13:54:11 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-12-23 13:54:11 +0100 |
commit | a7cfb4bda0a3f3cb2ccecbade43cd87d681dae4f (patch) | |
tree | ce4b0da1ee14591560f4fa09c3c2ae5fd5a37756 /cpukit/score/src/mutex.c | |
parent | libio: Use CONSOLE_DEVICE_NAME (diff) | |
download | rtems-a7cfb4bda0a3f3cb2ccecbade43cd87d681dae4f.tar.bz2 |
score: Relax <sys/lock.h> static assertions
Only require that the Newlib defined structure is big enough.
Diffstat (limited to 'cpukit/score/src/mutex.c')
-rw-r--r-- | cpukit/score/src/mutex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpukit/score/src/mutex.c b/cpukit/score/src/mutex.c index edd2e41dfd..30fba4e2fd 100644 --- a/cpukit/score/src/mutex.c +++ b/cpukit/score/src/mutex.c @@ -39,7 +39,7 @@ RTEMS_STATIC_ASSERT( ); RTEMS_STATIC_ASSERT( - sizeof( Mutex_Control ) == sizeof( struct _Mutex_Control ), + sizeof( Mutex_Control ) <= sizeof( struct _Mutex_Control ), MUTEX_CONTROL_SIZE ); @@ -50,19 +50,19 @@ typedef struct { RTEMS_STATIC_ASSERT( offsetof( Mutex_recursive_Control, Mutex ) - == offsetof( struct _Mutex_recursive_Control, _Mutex ), + <= offsetof( struct _Mutex_recursive_Control, _Mutex ), MUTEX_RECURSIVE_CONTROL_MUTEX ); RTEMS_STATIC_ASSERT( offsetof( Mutex_recursive_Control, nest_level ) - == offsetof( struct _Mutex_recursive_Control, _nest_level ), + <= offsetof( struct _Mutex_recursive_Control, _nest_level ), MUTEX_RECURSIVE_CONTROL_NEST_LEVEL ); RTEMS_STATIC_ASSERT( sizeof( Mutex_recursive_Control ) - == sizeof( struct _Mutex_recursive_Control ), + <= sizeof( struct _Mutex_recursive_Control ), MUTEX_RECURSIVE_CONTROL_SIZE ); |