On 3/3/23 09: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é
;) Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Richard W.M. Jones <[email protected]> --- 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(+)
