Changeset 48f693a9 in rtems


Ignore:
Timestamp:
01/24/23 15:53:03 (8 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
a2360c4
Parents:
5156cd69
Message:

score: Remove unused return value

Several SMP message processing functions returned a value. This value
was always unused.

Close #4822.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/include/rtems/score/smpimpl.h

    r5156cd69 r48f693a9  
    167167 *   this function.
    168168 *
    169  * @return Returns the processed message.
    170  */
    171 long unsigned _SMP_Process_message(
    172   Per_CPU_Control *cpu_self,
    173   long unsigned    message
    174 );
     169 * @param message is the message to process.
     170 */
     171void _SMP_Process_message( Per_CPU_Control *cpu_self, long unsigned message );
    175172
    176173/**
     
    201198 * @param[in, out] cpu_self is the processor control of the processor executing
    202199 *   this function.
    203  *
    204  * @return Returns the processed message.
    205  */
    206 static inline long unsigned _SMP_Inter_processor_interrupt_handler(
     200 */
     201static inline void _SMP_Inter_processor_interrupt_handler(
    207202  Per_CPU_Control *cpu_self
    208203)
     
    223218
    224219  if ( RTEMS_PREDICT_FALSE( message != 0 ) ) {
    225     return _SMP_Process_message( cpu_self, message );
     220    _SMP_Process_message( cpu_self, message );
    226221  }
    227 
    228   return message;
    229222}
    230223
  • cpukit/score/src/smp.c

    r5156cd69 r48f693a9  
    312312}
    313313
    314 long unsigned _SMP_Process_message(
    315   Per_CPU_Control *cpu_self,
    316   long unsigned    message
    317 )
     314void _SMP_Process_message( Per_CPU_Control *cpu_self, long unsigned message )
    318315{
    319316  if ( ( message & SMP_MESSAGE_SHUTDOWN ) != 0 ) {
     
    333330    _Per_CPU_Perform_jobs( cpu_self );
    334331  }
    335 
    336   return message;
    337332}
    338333
Note: See TracChangeset for help on using the changeset viewer.