Fix MISRA issues for ThreadX SMP (#263)
* Fixed MISRA2012 rule 10.4_a The operands `pool_ptr->tx_byte_pool_fragments' and `2' have essential type categories unsigned 32-bit int and signed 8-bit int, which do not match. * Fixed MISRA2012 rule 10.4_a The operands `next_priority' and `TX_MAX_PRIORITIES' have essential type categories unsigned 32-bit int and signed 8-bit int, which do not match. * Fixed MISRA2012 rule 8.3 Declaration/definition of `_tx_thread_smp_preemptable_threads_get' is inconsistent with previous declaration/definition in types and/or type qualifiers
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
/* FUNCTION RELEASE */
|
||||
/* */
|
||||
/* _tx_thread_system_suspend PORTABLE SMP */
|
||||
/* 6.1.11 */
|
||||
/* 6.x */
|
||||
/* AUTHOR */
|
||||
/* */
|
||||
/* William E. Lamie, Microsoft Corporation */
|
||||
@@ -91,6 +91,8 @@
|
||||
/* 04-25-2022 Scott Larson Modified comments and fixed */
|
||||
/* loop to find next thread, */
|
||||
/* resulting in version 6.1.11 */
|
||||
/* xx-xx-xxxx Tiejun Zhou Fixed MISRA2012 rule 10.4_a, */
|
||||
/* resulting in version 6.x */
|
||||
/* */
|
||||
/**************************************************************************/
|
||||
VOID _tx_thread_system_suspend(TX_THREAD *thread_ptr)
|
||||
@@ -671,7 +673,7 @@ UINT processing_complete;
|
||||
complex_path_possible = possible_cores & available_cores;
|
||||
|
||||
/* Check if we need to loop to find the next highest priority thread. */
|
||||
if (next_priority == TX_MAX_PRIORITIES)
|
||||
if (next_priority == (ULONG)TX_MAX_PRIORITIES)
|
||||
{
|
||||
loop_finished = TX_TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user