qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Michael Tokarev <mjt@tls.msk.ru>
To: qemu-devel@nongnu.org
Cc: qemu-trivial@nongnu.org, Stefan Weil <sw@weilnetz.de>,
	Michael Tokarev <mjt@tls.msk.ru>
Subject: [Qemu-devel] [PULL 01/23] target-s390x: Add missing 'static' and 'const' attributes
Date: Thu, 27 Mar 2014 19:28:06 +0400	[thread overview]
Message-ID: <1395934108-1694-2-git-send-email-mjt@msgid.tls.msk.ru> (raw)
In-Reply-To: <1395934108-1694-1-git-send-email-mjt@msgid.tls.msk.ru>

From: Stefan Weil <sw@weilnetz.de>

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>
---
 target-s390x/arch_dump.c |    6 +++---
 1 file 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);
-- 
1.7.10.4

  reply	other threads:[~2014-03-27 16:08 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27 15:28 [Qemu-devel] [PULL for-2.0 00/23] Trivial patches for 2014-03-27 Michael Tokarev
2014-03-27 15:28 ` Michael Tokarev [this message]
2014-03-27 15:28 ` [Qemu-devel] [PULL 02/23] target-arm: Add missing 'static' attribute Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 03/23] hw/ide: Add missing 'static' attributes Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 04/23] util: Add 'static' attribute to function implementation Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 05/23] target-i386: Add missing 'static' and 'const' attributes Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 06/23] fix return check for KVM_GET_DIRTY_LOG ioctl Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 07/23] doc: update sun4m documentation Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 08/23] doc: update default PowerPC framebuffer settings Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 09/23] CODING_STYLE: Section about mixed declarations Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 10/23] target-i386: Avoid shifting left into sign bit Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 11/23] hw/intc/apic.c: Use uint32_t for mask word in foreach_apic Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 12/23] hw/pci/pci_host.c: Avoid shifting left into sign bit Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 13/23] hw/i386/acpi_build.c: " Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 14/23] target-mips: " Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 15/23] hw/usb/hcd-ohci.c: " Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 16/23] hw/intc/openpic: " Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 17/23] hw/ppc: " Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 18/23] tests/libqos/pci-pc: " Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 19/23] hw/intc/slavio_intctl: " Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 20/23] hw/intc/xilinx_intc: " Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 21/23] hw/pci-host/apb.c: " Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 22/23] hw/timer/grlib_gptimer: remove unnecessary assignment Michael Tokarev
2014-03-27 15:28 ` [Qemu-devel] [PULL 23/23] linux-user: remove duplicate statement Michael Tokarev
2014-03-27 17:10 ` [Qemu-devel] [PULL for-2.0 00/23] Trivial patches for 2014-03-27 Peter Maydell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1395934108-1694-2-git-send-email-mjt@msgid.tls.msk.ru \
    --to=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-trivial@nongnu.org \
    --cc=sw@weilnetz.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).