aboutsummaryrefslogtreecommitdiff
path: root/hw/core
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-12 23:26:59 +0100
committerPhilippe Mathieu-Daudé <philmd@linaro.org>2023-02-27 22:29:01 +0100
commit2d2f2507c65bbb79bb2f0157db3f73ec114d9b32 (patch)
treecc39917a2fd43b84de7a0e1b5d610e15e92310ed /hw/core
parent12a51d983de118cf2258fe238b22fabedb4a5ffc (diff)
downloadqemu-2d2f2507c65bbb79bb2f0157db3f73ec114d9b32.zip
qemu-2d2f2507c65bbb79bb2f0157db3f73ec114d9b32.tar.gz
qemu-2d2f2507c65bbb79bb2f0157db3f73ec114d9b32.tar.bz2
hw/qdev: Constify DeviceState* argument of qdev_get_parent_bus()
The structure is accessed read-only by qdev_get_parent_bus(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20230212224730.51438-2-philmd@linaro.org>
Diffstat (limited to 'hw/core')
-rw-r--r--hw/core/qdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/core/qdev.c b/hw/core/qdev.c
index d759c46..43d863b 100644
--- a/hw/core/qdev.c
+++ b/hw/core/qdev.c
@@ -330,7 +330,7 @@ bool qdev_machine_modified(void)
return qdev_hot_added || qdev_hot_removed;
}
-BusState *qdev_get_parent_bus(DeviceState *dev)
+BusState *qdev_get_parent_bus(const DeviceState *dev)
{
return dev->parent_bus;
}