[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/41] hw/net/i82596: Include missing 'exec/address-spaces.h' head
From: |
Philippe Mathieu-Daudé |
Subject: |
[PULL 05/41] hw/net/i82596: Include missing 'exec/address-spaces.h' header |
Date: |
Thu, 31 Aug 2023 14:56:07 +0200 |
hw/net/i82596.c access the global 'address_space_memory'
calling the ld/st_phys() API. address_space_memory is
declared in "exec/address-spaces.h". Currently this header
is indirectly pulled in via another header. Explicitly include
it to avoid when refactoring unrelated headers:
hw/net/i82596.c:91:23: error: use of undeclared identifier
'address_space_memory'; did you mean 'address_space_destroy'?
return ldub_phys(&address_space_memory, addr);
^~~~~~~~~~~~~~~~~~~~
address_space_destroy
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230619074153.44268-2-philmd@linaro.org>
---
hw/net/i82596.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/hw/net/i82596.c b/hw/net/i82596.c
index ab26f8bea1..6defa9d3a1 100644
--- a/hw/net/i82596.c
+++ b/hw/net/i82596.c
@@ -15,6 +15,7 @@
#include "hw/irq.h"
#include "hw/qdev-properties.h"
#include "migration/vmstate.h"
+#include "exec/address-spaces.h"
#include "qemu/module.h"
#include "trace.h"
#include "i82596.h"
--
2.41.0
- [PULL 00/41] Misc patches for 2023-08-31, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 01/41] accel: Remove HAX accelerator, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 02/41] accel/tcg: spelling fixes, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 03/41] qemu/uri: Use QueryParams type definition, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 04/41] bulk: Do not declare function prototypes using 'extern' keyword, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 05/41] hw/net/i82596: Include missing 'exec/address-spaces.h' header,
Philippe Mathieu-Daudé <=
- [PULL 06/41] hw/dma/etraxfs: Include missing 'exec/memory.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 07/41] exec/address-spaces.h: Remove unuseful 'exec/memory.h' include, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 08/41] target/ppc/pmu: Include missing 'qemu/timer.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 09/41] target/riscv/pmu: Restrict 'qemu/log.h' include to source, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 10/41] target/translate: Include missing 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 11/41] target/translate: Remove unnecessary 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 12/41] target/translate: Restrict 'exec/cpu_ldst.h' to user emulation, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 13/41] target/helpers: Remove unnecessary 'exec/cpu_ldst.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 14/41] target/helpers: Remove unnecessary 'qemu/main-loop.h' header, Philippe Mathieu-Daudé, 2023/08/31
- [PULL 15/41] target/mips: Remove unused headers in lcsr_helper.c, Philippe Mathieu-Daudé, 2023/08/31