qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2] tcg: Include "qemu/timer.h" for profile_getclock


From: Richard Henderson
Subject: Re: [PATCH v2] tcg: Include "qemu/timer.h" for profile_getclock
Date: Sat, 4 Mar 2023 10:24:56 -0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1

On 3/3/23 00:49, Richard W.M. Jones wrote:
When CONFIG_PROFILER is set there are various undefined references to
profile_getclock.  Include the header which defines this function.

For example:

../tcg/tcg.c: In function ‘tcg_gen_code’:
../tcg/tcg.c:4905:51: warning: implicit declaration of function 
‘profile_getclock’ [-Wimplicit-function-declaration]
  4905 |     qatomic_set(&prof->opt_time, prof->opt_time - profile_getclock());
       |                                                   ^~~~~~~~~~~~~~~~

Thanks: Philippe Mathieu-Daudé
Signed-off-by: Richard W.M. Jones<rjones@redhat.com>
---
  accel/tcg/tcg-accel-ops.c | 1 +
  accel/tcg/translate-all.c | 1 +
  softmmu/runstate.c        | 1 +
  tcg/tcg.c                 | 1 +
  4 files changed, 4 insertions(+)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>

And queued to tcg-next.


r~



reply via email to

[Prev in Thread] Current Thread [Next in Thread]