]> Git Repo - qemu.git/commitdiff
s390x/css: Make schib parameter of css_do_msch const
authorThomas Huth <[email protected]>
Thu, 12 Feb 2015 17:09:32 +0000 (18:09 +0100)
committerChristian Borntraeger <[email protected]>
Wed, 18 Feb 2015 08:37:15 +0000 (09:37 +0100)
The schib parameter of css_do_msch() can be declared as const to
make it clear that it does not get modified by this function.

Signed-off-by: Thomas Huth <[email protected]>
Signed-off-by: Jens Freimann <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Acked-by: Cornelia Huck <[email protected]>
Signed-off-by: Christian Borntraeger <[email protected]>
hw/s390x/css.c
target-s390x/cpu.h

index d0c5ddeece7018a30a7fb65aeba0db3dbffdb599..65e6b712a1a1421739bb1a53b2b045992e43d880 100644 (file)
@@ -584,7 +584,7 @@ static void copy_schib_from_guest(SCHIB *dest, const SCHIB *src)
     }
 }
 
-int css_do_msch(SubchDev *sch, SCHIB *orig_schib)
+int css_do_msch(SubchDev *sch, const SCHIB *orig_schib)
 {
     SCSW *s = &sch->curr_status.scsw;
     PMCW *p = &sch->curr_status.pmcw;
index a9ab587627848559409f030f994d626531958d4c..7180d68429661d2bd8c74396ff3fa05b4bda9a5c 100644 (file)
@@ -450,7 +450,7 @@ bool css_subch_visible(SubchDev *sch);
 void css_conditional_io_interrupt(SubchDev *sch);
 int css_do_stsch(SubchDev *sch, SCHIB *schib);
 bool css_schid_final(int m, uint8_t cssid, uint8_t ssid, uint16_t schid);
-int css_do_msch(SubchDev *sch, SCHIB *schib);
+int css_do_msch(SubchDev *sch, const SCHIB *schib);
 int css_do_xsch(SubchDev *sch);
 int css_do_csch(SubchDev *sch);
 int css_do_hsch(SubchDev *sch);
This page took 0.033723 seconds and 4 git commands to generate.