]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/ppc/spapr: Include missing 'sysemu/tcg.h' header
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 28 Mar 2024 08:19:16 +0000 (18:19 +1000)
committerNicholas Piggin <npiggin@gmail.com>
Sat, 30 Mar 2024 08:50:23 +0000 (18:50 +1000)
commitbeb0b62c3e0f7e486eac680f41b140f4ed492f59
tree1ffb73f01216ed5c37fc296141572e163aa03451
parent58cb91b34d9b1e87353c4a21ff39062dd8b25dd5
hw/ppc/spapr: Include missing 'sysemu/tcg.h' header

"sysemu/tcg.h" declares tcg_enabled(), and is implicitly included.
Include it explicitly to avoid the following error when refactoring
headers:

  hw/ppc/spapr.c:2612:9: error: call to undeclared function 'tcg_enabled'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    if (tcg_enabled()) {
        ^

Reviewed-by: Harsh Prateek Bora <harshpb@linux.ibm.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
hw/ppc/spapr.c