* [Qemu-trivial] [PATCH] migration: Fix warning caused by missing declaration of vmstate_dummy @ 2015-02-06 20:52 Stefan Weil 2015-02-06 20:52 ` [Qemu-trivial] [PATCH] migration: Fix warnings caused by missing 'static' attribute Stefan Weil 2015-02-06 21:34 ` [Qemu-trivial] [PATCH] migration: Fix warning caused by missing declaration of vmstate_dummy Stefan Weil 0 siblings, 2 replies; 3+ messages in thread From: Stefan Weil @ 2015-02-06 20:52 UTC (permalink / raw) To: qemu-devel, qemu-trivial; +Cc: Amit Shah, Stefan Weil, Juan Quintela Warning from the Sparse static analysis tool: stubs/vmstate.c:4:26: warning: symbol 'vmstate_dummy' was not declared. Should it be static? Cc: Juan Quintela <quintela@redhat.com> Cc: Amit Shah <amit.shah@redhat.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> --- include/migration/vmstate.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 0b26bc6..c20f2d1 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -139,9 +139,7 @@ struct VMStateDescription { const VMStateSubsection *subsections; }; -#ifdef CONFIG_USER_ONLY extern const VMStateDescription vmstate_dummy; -#endif extern const VMStateInfo vmstate_info_bool; -- 2.1.4 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Qemu-trivial] [PATCH] migration: Fix warnings caused by missing 'static' attribute 2015-02-06 20:52 [Qemu-trivial] [PATCH] migration: Fix warning caused by missing declaration of vmstate_dummy Stefan Weil @ 2015-02-06 20:52 ` Stefan Weil 2015-02-06 21:34 ` [Qemu-trivial] [PATCH] migration: Fix warning caused by missing declaration of vmstate_dummy Stefan Weil 1 sibling, 0 replies; 3+ messages in thread From: Stefan Weil @ 2015-02-06 20:52 UTC (permalink / raw) To: qemu-devel, qemu-trivial; +Cc: Amit Shah, Stefan Weil, Juan Quintela Warnings from the Sparse static analysis tool: migration-rdma.c:151:12: warning: symbol 'wrid_desc' was not declared. Should it be static? migration-rdma.c:190:12: warning: symbol 'control_desc' was not declared. Should it be static? migration-rdma.c:3301:19: warning: symbol 'rdma_read_ops' was not declared. Should it be static? migration-rdma.c:3308:19: warning: symbol 'rdma_write_ops' was not declared. Should it be static? Cc: Juan Quintela <quintela@redhat.com> Cc: Amit Shah <amit.shah@redhat.com> Signed-off-by: Stefan Weil <sw@weilnetz.de> --- migration/rdma.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/migration/rdma.c b/migration/rdma.c index fc351ea..589931a 100644 --- a/migration/rdma.c +++ b/migration/rdma.c @@ -121,7 +121,7 @@ enum { RDMA_WRID_RECV_CONTROL = 4000, }; -const char *wrid_desc[] = { +static const char *wrid_desc[] = { [RDMA_WRID_NONE] = "NONE", [RDMA_WRID_RDMA_WRITE] = "WRITE RDMA", [RDMA_WRID_SEND_CONTROL] = "CONTROL SEND", @@ -160,7 +160,7 @@ enum { RDMA_CONTROL_UNREGISTER_FINISHED, /* unpinning finished */ }; -const char *control_desc[] = { +static const char *control_desc[] = { [RDMA_CONTROL_NONE] = "NONE", [RDMA_CONTROL_ERROR] = "ERROR", [RDMA_CONTROL_READY] = "READY", @@ -3253,14 +3253,14 @@ static int qemu_rdma_get_fd(void *opaque) return rdma->comp_channel->fd; } -const QEMUFileOps rdma_read_ops = { +static const QEMUFileOps rdma_read_ops = { .get_buffer = qemu_rdma_get_buffer, .get_fd = qemu_rdma_get_fd, .close = qemu_rdma_close, .hook_ram_load = qemu_rdma_registration_handle, }; -const QEMUFileOps rdma_write_ops = { +static const QEMUFileOps rdma_write_ops = { .put_buffer = qemu_rdma_put_buffer, .close = qemu_rdma_close, .before_ram_iterate = qemu_rdma_registration_start, -- 2.1.4 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Qemu-trivial] [PATCH] migration: Fix warning caused by missing declaration of vmstate_dummy 2015-02-06 20:52 [Qemu-trivial] [PATCH] migration: Fix warning caused by missing declaration of vmstate_dummy Stefan Weil 2015-02-06 20:52 ` [Qemu-trivial] [PATCH] migration: Fix warnings caused by missing 'static' attribute Stefan Weil @ 2015-02-06 21:34 ` Stefan Weil 1 sibling, 0 replies; 3+ messages in thread From: Stefan Weil @ 2015-02-06 21:34 UTC (permalink / raw) To: qemu-trivial; +Cc: Amit Shah, Juan Quintela Am 06.02.2015 um 21:52 schrieb Stefan Weil: > Warning from the Sparse static analysis tool: > > stubs/vmstate.c:4:26: warning: > symbol 'vmstate_dummy' was not declared. Should it be static? > > Cc: Juan Quintela <quintela@redhat.com> > Cc: Amit Shah <amit.shah@redhat.com> > Signed-off-by: Stefan Weil <sw@weilnetz.de> > --- > Sorry, I just noticed that I have sent several patches with a wrong mailing address qemu-devel@nongnug.org instead of qemu-devel@nongnu.org. I'll resend those patches in a series with correct address. Stefan ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-06 21:34 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-02-06 20:52 [Qemu-trivial] [PATCH] migration: Fix warning caused by missing declaration of vmstate_dummy Stefan Weil 2015-02-06 20:52 ` [Qemu-trivial] [PATCH] migration: Fix warnings caused by missing 'static' attribute Stefan Weil 2015-02-06 21:34 ` [Qemu-trivial] [PATCH] migration: Fix warning caused by missing declaration of vmstate_dummy Stefan Weil
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.