On 2/3/23 17:29, 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());
       |                                                   ^~~~~~~~~~~~~~~~

Signed-off-by: Richard W.M. Jones <rjo...@redhat.com>
---
  tcg/tcg.c | 1 +
  1 file changed, 1 insertion(+)

These files have the same issue:

- softmmu/runstate.c
- accel/tcg/translate-all.c
- accel/tcg/tcg-accel-ops.c


Reply via email to