[Skiboot] [PATCH 02/15] core/test/run-trace: Fix type in testing struct

Oliver oohall at gmail.com
Mon Mar 25 11:37:07 AEDT 2019


On Mon, Mar 25, 2019 at 11:16 AM Jordan Niethe <jniethe5 at gmail.com> wrote:
>
> A mock cpu thread structure is used for testing the skiboot trace
> buffers. This contains the parts of the actual structure that are needed
> for the tests. Within the mock structure the type used for servo_no is
> different from the real structure. Change the type so it is consistent.

Reviewed-by: Oliver O'Halloran <oohall at gmail.com>

> ---
>  core/test/run-trace.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/core/test/run-trace.c b/core/test/run-trace.c
> index dd4cd450002c..ef7ebfe12655 100644
> --- a/core/test/run-trace.c
> +++ b/core/test/run-trace.c
> @@ -55,7 +55,7 @@ struct cpu_thread {
>         uint32_t pir;
>         uint32_t chip_id;
>         struct trace_info *trace;
> -       int server_no;
> +       uint32_t server_no;
>         bool is_secondary;
>         struct cpu_thread *primary;
>  };
> --
> 2.20.1
>
> _______________________________________________
> Skiboot mailing list
> Skiboot at lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/skiboot


More information about the Skiboot mailing list