diff options
| author | Juan Quintela <quintela@redhat.com> | 2023-10-30 17:38:34 +0100 |
|---|---|---|
| committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2023-11-07 15:49:41 -0300 |
| commit | 5bf4ceec109289356f50f69bf277c99b045182e7 (patch) | |
| tree | d020860a1289e119724a41a6bf2216da67ac1a00 /hw/pci-host/pnv_phb4.c | |
| parent | fcc63904b5e3622e6495b923a9e0e7d10cc78c5c (diff) | |
| download | focaccia-qemu-5bf4ceec109289356f50f69bf277c99b045182e7.tar.gz focaccia-qemu-5bf4ceec109289356f50f69bf277c99b045182e7.zip | |
ppc: qtest already exports qtest_rtas_call()
Having two functions with the same name is a bad idea. As spapr only uses the function locally, made it static. When you compile with clang, you get this compilation error: /usr/bin/ld: tests/qtest/libqos/libqos.fa.p/.._libqtest.c.o: in function `qtest_rtas_call': /scratch/qemu/clang/full/all/../../../../../mnt/code/qemu/full/tests/qtest/libqtest.c:1195: multiple definition of `qtest_rtas_call'; libqemu-ppc64-softmmu.fa.p/hw_ppc_spapr_rtas.c.o:/scratch/qemu/clang/full/all/../../../../../mnt/code/qemu/full/hw/ppc/spapr_rtas.c:536: first defined here clang-16: error: linker command failed with exit code 1 (use -v to see invocation) ninja: build stopped: subcommand failed. make: *** [Makefile:162: run-ninja] Error 1 Signed-off-by: Juan Quintela <quintela@redhat.com> Reviewed-by: Cédric Le Goater <clg@kaod.org> Message-ID: <20231030163834.4638-1-quintela@redhat.com> [dhb: remove 'spapr_rtas.h' include from spapr_rtas.c] Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Diffstat (limited to 'hw/pci-host/pnv_phb4.c')
0 files changed, 0 insertions, 0 deletions