aboutsummaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2014-03-16 14:49:11 +0100
committerMichael Tokarev <mjt@tls.msk.ru>2014-03-27 19:22:48 +0400
commitecb4e01e3449074576ae866c4547b5ff3849ddd7 (patch)
treef1dd88256aceb2c6e9368074032d617dd13e3804 /target-s390x
parentbea4acda3bff00e98cb00d5354f23de9e74a928f (diff)
downloadqemu-ecb4e01e3449074576ae866c4547b5ff3849ddd7.zip
qemu-ecb4e01e3449074576ae866c4547b5ff3849ddd7.tar.gz
qemu-ecb4e01e3449074576ae866c4547b5ff3849ddd7.tar.bz2
target-s390x: Add missing 'static' and 'const' attributes
This fixes warnings from the static code analysis (smatch). Signed-off-by: Stefan Weil <sw@weilnetz.de> Reviewed-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/arch_dump.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/target-s390x/arch_dump.c b/target-s390x/arch_dump.c
index 5cbb53c..a1554f5 100644
--- a/target-s390x/arch_dump.c
+++ b/target-s390x/arch_dump.c
@@ -123,7 +123,7 @@ static void s390x_write_elf64_prefix(Note *note, S390CPU *cpu)
}
-struct NoteFuncDescStruct {
+static const struct NoteFuncDescStruct {
int contents_size;
void (*note_contents_func)(Note *note, S390CPU *cpu);
} note_func[] = {
@@ -146,7 +146,7 @@ static int s390x_write_all_elf64_notes(const char *note_name,
void *opaque)
{
Note note;
- NoteFuncDesc *nf;
+ const NoteFuncDesc *nf;
int note_size;
int ret = -1;
@@ -192,7 +192,7 @@ ssize_t cpu_get_note_size(int class, int machine, int nr_cpus)
int name_size = 8; /* "CORE" or "QEMU" rounded */
size_t elf_note_size = 0;
int note_head_size;
- NoteFuncDesc *nf;
+ const NoteFuncDesc *nf;
assert(class == ELFCLASS64);
assert(machine == EM_S390);