Mark the RAMBlock structure const when is only accessed read-only. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Peter Xu <peterx@redhat.com> Link: https://lore.kernel.org/r/20260309183536.88976-2-philmd@linaro.org Signed-off-by: Peter Xu <peterx@redhat.com>
38 lines
576 B
C
38 lines
576 B
C
#include "qemu/osdep.h"
|
|
#include "system/ramlist.h"
|
|
#include "system/ramblock.h"
|
|
#include "system/memory.h"
|
|
|
|
void *qemu_ram_get_host_addr(const RAMBlock *rb)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
ram_addr_t qemu_ram_get_offset(const RAMBlock *rb)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
ram_addr_t qemu_ram_get_used_length(const RAMBlock *rb)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void ram_block_notifier_add(RAMBlockNotifier *n)
|
|
{
|
|
}
|
|
|
|
void ram_block_notifier_remove(RAMBlockNotifier *n)
|
|
{
|
|
}
|
|
|
|
int qemu_ram_foreach_block(RAMBlockIterFunc func, void *opaque)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
int ram_block_discard_disable(bool state)
|
|
{
|
|
return 0;
|
|
}
|