提交 dc6c4fe8 编写于 作者: P Peter Crosthwaite 提交者: Paolo Bonzini

xen-hvm: Constify string

It's constant, and sourced from existing const strings. Avoid dodgy
casts by converting to const.
Signed-off-by: NPeter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: NStefan Weil <sw@weilnetz.de>
Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
上级 c9f65528
......@@ -71,7 +71,7 @@ static inline ioreq_t *xen_vcpu_ioreq(shared_iopage_t *shared_page, int vcpu)
typedef struct XenPhysmap {
hwaddr start_addr;
ram_addr_t size;
char *name;
const char *name;
hwaddr phys_offset;
QLIST_ENTRY(XenPhysmap) list;
......@@ -330,7 +330,7 @@ go_physmap:
physmap->start_addr = start_addr;
physmap->size = size;
physmap->name = (char *)mr->name;
physmap->name = mr->name;
physmap->phys_offset = phys_offset;
QLIST_INSERT_HEAD(&state->physmap, physmap, list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册