[PATCH 08/12] score: Always define RTEMSScoreMRSP group

Gedare Bloom gedare at rtems.org
Tue Dec 1 16:48:26 UTC 2020


I never realized the Doxygen picks up the CPP feature checks. That's really
interesting.

On Tue, Dec 1, 2020 at 1:10 AM Sebastian Huber <
sebastian.huber at embedded-brains.de> wrote:

> This fixes a Doxygen warning.
> ---
>  cpukit/include/rtems/score/mrsp.h | 9 ++++-----
>  1 file changed, 4 insertions(+), 5 deletions(-)
>
> diff --git a/cpukit/include/rtems/score/mrsp.h
> b/cpukit/include/rtems/score/mrsp.h
> index e42c3a400c..678a678b14 100644
> --- a/cpukit/include/rtems/score/mrsp.h
> +++ b/cpukit/include/rtems/score/mrsp.h
> @@ -24,9 +24,6 @@
>  #define _RTEMS_SCORE_MRSP_H
>
>  #include <rtems/score/cpuopts.h>
> -
> -#if defined(RTEMS_SMP)
> -
>  #include <rtems/score/threadq.h>
>
>  #ifdef __cplusplus
> @@ -57,6 +54,8 @@ extern "C" {
>   * @{
>   */
>
> +#if defined(RTEMS_SMP)
> +
>  /**
>   * @brief MrsP control block.
>   */
> @@ -77,12 +76,12 @@ typedef struct {
>    Priority_Control ceiling_priorities[ RTEMS_ZERO_LENGTH_ARRAY ];
>  } MRSP_Control;
>
> +#endif /* RTEMS_SMP */
> +
>  /** @} */
>
>  #ifdef __cplusplus
>  }
>  #endif /* __cplusplus */
>
> -#endif /* RTEMS_SMP */
> -
>  #endif /* _RTEMS_SCORE_MRSP_H */
> --
> 2.26.2
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20201201/cfea7996/attachment.html>


More information about the devel mailing list