From: David Hildenbrand Date: Tue, 26 Sep 2023 18:57:27 +0000 (+0200) Subject: stubs: Rename qmp_memory_device.c to memory_device.c X-Git-Tag: v8.2.0~121^2~11 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=759bac673a8de9d6db50b0f96caa7b70cf0d1694;p=mirror_qemu.git stubs: Rename qmp_memory_device.c to memory_device.c We want to place non-qmp stubs in there, so let's rename it. While at it, put it into the MAINTAINERS file under "Memory devices". Message-ID: <20230926185738.277351-8-david@redhat.com> Reviewed-by: Maciej S. Szmigiero Reviewed-by: Michael S. Tsirkin Signed-off-by: David Hildenbrand --- diff --git a/MAINTAINERS b/MAINTAINERS index c3cc12dc29..0c585d093f 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2876,6 +2876,7 @@ F: hw/mem/pc-dimm.c F: include/hw/mem/memory-device.h F: include/hw/mem/nvdimm.h F: include/hw/mem/pc-dimm.h +F: stubs/memory_device.c F: docs/nvdimm.txt SPICE diff --git a/stubs/memory_device.c b/stubs/memory_device.c new file mode 100644 index 0000000000..e75cac62dc --- /dev/null +++ b/stubs/memory_device.c @@ -0,0 +1,12 @@ +#include "qemu/osdep.h" +#include "hw/mem/memory-device.h" + +MemoryDeviceInfoList *qmp_memory_device_list(void) +{ + return NULL; +} + +uint64_t get_plugged_memory_size(void) +{ + return (uint64_t)-1; +} diff --git a/stubs/meson.build b/stubs/meson.build index ef6e39a64d..cde44972bf 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -32,7 +32,7 @@ stub_ss.add(files('monitor.c')) stub_ss.add(files('monitor-core.c')) stub_ss.add(files('physmem.c')) stub_ss.add(files('qemu-timer-notify-cb.c')) -stub_ss.add(files('qmp_memory_device.c')) +stub_ss.add(files('memory_device.c')) stub_ss.add(files('qmp-command-available.c')) stub_ss.add(files('qmp-quit.c')) stub_ss.add(files('qtest.c')) diff --git a/stubs/qmp_memory_device.c b/stubs/qmp_memory_device.c deleted file mode 100644 index e75cac62dc..0000000000 --- a/stubs/qmp_memory_device.c +++ /dev/null @@ -1,12 +0,0 @@ -#include "qemu/osdep.h" -#include "hw/mem/memory-device.h" - -MemoryDeviceInfoList *qmp_memory_device_list(void) -{ - return NULL; -} - -uint64_t get_plugged_memory_size(void) -{ - return (uint64_t)-1; -}