diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2020-02-28 12:46:40 +0100 |
---|---|---|
committer | Laurent Vivier <laurent@vivier.eu> | 2020-03-09 15:59:31 +0100 |
commit | e07c4f44b0d5c80577cb00421a5370d2dbbcfa6b (patch) | |
tree | 0ff572fdfda248a27492ed3c64f8288b75d43721 /hw | |
parent | b58337ffee04cc62b66c6117285f2ea404658ed3 (diff) |
hw/hppa/machine: Include "net/net.h"
hw/hppa/machine.c uses NICInfo variables which are declared in
"net/net.h". Include it.
This fixes (when modifying unrelated headers):
hw/hppa/machine.c:126:21: error: use of undeclared identifier 'nb_nics'
for (i = 0; i < nb_nics; i++) {
^
hw/hppa/machine.c:127:30: error: use of undeclared identifier 'nd_table'
pci_nic_init_nofail(&nd_table[i], pci_bus, "e1000", NULL);
^
Acked-by: John Snow <jsnow@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200228114649.12818-10-philmd@redhat.com>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/hppa/machine.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/hppa/machine.c b/hw/hppa/machine.c index bf18767e24..9175f4b790 100644 --- a/hw/hppa/machine.c +++ b/hw/hppa/machine.c @@ -22,6 +22,7 @@ #include "qapi/error.h" #include "net/net.h" #include "qemu/log.h" +#include "net/net.h" #define MAX_IDE_BUS 2 |