diff options
author | Stefan Weil <sw@weilnetz.de> | 2014-03-16 14:49:54 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2014-03-19 18:35:52 +0100 |
commit | cfd54a0409c92cbf3b2e6af39ce44a13f6940dd0 (patch) | |
tree | 5aa89466df235974434a0956b3dbd82e3cb6bed4 /target-ppc/machine.c | |
parent | 4c8821d13405056776d0255bb78925dac91996c3 (diff) | |
download | qemu-cfd54a0409c92cbf3b2e6af39ce44a13f6940dd0.zip qemu-cfd54a0409c92cbf3b2e6af39ce44a13f6940dd0.tar.gz qemu-cfd54a0409c92cbf3b2e6af39ce44a13f6940dd0.tar.bz2 |
target-ppc: Add missing 'static' and 'const' attributes
This fixes warnings from the static code analysis (smatch).
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'target-ppc/machine.c')
-rw-r--r-- | target-ppc/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-ppc/machine.c b/target-ppc/machine.c index 2d46cec..063b379 100644 --- a/target-ppc/machine.c +++ b/target-ppc/machine.c @@ -114,7 +114,7 @@ static void put_avr(QEMUFile *f, void *pv, size_t size) qemu_put_be64(f, v->u64[1]); } -const VMStateInfo vmstate_info_avr = { +static const VMStateInfo vmstate_info_avr = { .name = "avr", .get = get_avr, .put = put_avr, @@ -288,7 +288,7 @@ static void put_slbe(QEMUFile *f, void *pv, size_t size) qemu_put_be64(f, v->vsid); } -const VMStateInfo vmstate_info_slbe = { +static const VMStateInfo vmstate_info_slbe = { .name = "slbe", .get = get_slbe, .put = put_slbe, |