[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 17/20] hw/acpi: Include "hw/mem/nvdimm.h"
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 17/20] hw/acpi: Include "hw/mem/nvdimm.h" |
Date: |
Mon, 14 Oct 2019 16:22:43 +0200 |
Both ich9.c and piix4.c use methods/definitions declared in the
NVDIMM device header. Include it.
This fixes (when modifying unrelated headers):
hw/acpi/ich9.c:507:46: error: use of undeclared identifier 'TYPE_NVDIMM'
if (object_dynamic_cast(OBJECT(dev), TYPE_NVDIMM)) {
^
hw/acpi/ich9.c:508:13: error: implicit declaration of function
'nvdimm_acpi_plug_cb' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
nvdimm_acpi_plug_cb(hotplug_dev, dev);
^
hw/acpi/piix4.c:403:46: error: use of undeclared identifier 'TYPE_NVDIMM'
if (object_dynamic_cast(OBJECT(dev), TYPE_NVDIMM)) {
^
hw/acpi/piix4.c:404:13: error: implicit declaration of function
'nvdimm_acpi_plug_cb' is invalid in C99
[-Werror,-Wimplicit-function-declaration]
nvdimm_acpi_plug_cb(hotplug_dev, dev);
^
Signed-off-by: Philippe Mathieu-Daudé <address@hidden>
---
hw/acpi/ich9.c | 1 +
hw/acpi/piix4.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c
index fdd0a6c79e..4e74284b65 100644
--- a/hw/acpi/ich9.c
+++ b/hw/acpi/ich9.c
@@ -39,6 +39,7 @@
#include "hw/i386/ich9.h"
#include "hw/mem/pc-dimm.h"
+#include "hw/mem/nvdimm.h"
//#define DEBUG
diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c
index 5742c3df87..11a3e33e5b 100644
--- a/hw/acpi/piix4.c
+++ b/hw/acpi/piix4.c
@@ -39,6 +39,7 @@
#include "hw/acpi/cpu.h"
#include "hw/hotplug.h"
#include "hw/mem/pc-dimm.h"
+#include "hw/mem/nvdimm.h"
#include "hw/acpi/memory_hotplug.h"
#include "hw/acpi/acpi_dev_interface.h"
#include "hw/xen/xen.h"
--
2.21.0
- [PATCH 08/20] hw/xen/xen_pt_load_rom: Remove unused includes, (continued)
- [PATCH 08/20] hw/xen/xen_pt_load_rom: Remove unused includes, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 09/20] hw/alpha/alpha_sys: Remove unused "hw/ide.h" header, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 10/20] hw/alpha/dp264: Include "net/net.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 11/20] hw/hppa/machine: Include "net/net.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 12/20] hw/acpi/cpu_hotplug: Include "hw/pci/pci.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 13/20] hw/timer/hpet: Include "exec/address-spaces.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 14/20] hw/pci-host/q35: Include "qemu/range.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 15/20] hw/i2c/smbus_ich9: Include "qemu/range.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 16/20] hw/pci-host/piix: Include "qemu/range.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 17/20] hw/acpi: Include "hw/mem/nvdimm.h",
Philippe Mathieu-Daudé <=
- [PATCH 18/20] hw/i386: Include "hw/mem/nvdimm.h", Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 19/20] hw/pci-host/q35: Remove unused includes, Philippe Mathieu-Daudé, 2019/10/14
- [PATCH 20/20] hw/i386/pc: Clean up includes, Philippe Mathieu-Daudé, 2019/10/14
- Re: [PATCH 00/20] hw: Clean up hw/i386 headers (and few alpha/hppa), John Snow, 2019/10/14
- Re: [PATCH 00/20] hw: Clean up hw/i386 headers (and few alpha/hppa), Philippe Mathieu-Daudé, 2019/10/26