Patchwork [11/19] s390: Make typeinfo const

login
register
mail settings
Submitter Alexander Graf
Date Jan. 29, 2013, 8:50 p.m.
Message ID <1359492659-16362-12-git-send-email-agraf@suse.de>
Download mbox | patch
Permalink /patch/216665/
State New
Headers show

Comments

Alexander Graf - Jan. 29, 2013, 8:50 p.m.
All TypeInfo definitions should be const.

Signed-off-by: Alexander Graf <agraf@suse.de>
---
 hw/s390x/ipl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c
index 7cbbf99..86e8415 100644
--- a/hw/s390x/ipl.c
+++ b/hw/s390x/ipl.c
@@ -159,7 +159,7 @@  static void s390_ipl_class_init(ObjectClass *klass, void *data)
     dc->no_user = 1;
 }
 
-static TypeInfo s390_ipl_info = {
+static const TypeInfo s390_ipl_info = {
     .class_init = s390_ipl_class_init,
     .parent = TYPE_SYS_BUS_DEVICE,
     .name  = "s390-ipl",