From: Andrii Anisov <andrii.anisov@gmail.com>
To: xen-devel@lists.xenproject.org
Cc: Julien Grall <julien.grall@arm.com>,
Andrii Anisov <andrii_anisov@epam.com>
Subject: [[PATCH]] libxl/arm: Fix ARM build.
Date: Tue, 16 May 2017 13:23:18 +0300 [thread overview]
Message-ID: <1494930198-3804-1-git-send-email-andrii.anisov@gmail.com> (raw)
From: Andrii Anisov <andrii_anisov@epam.com>
Some compilers do not (validly?) detect that size will always be
initialized when (rc > 0), so implicitly initialize it.
Signed-off-by: Julien Grall <julien.grall@arm.com>
---
tools/libxl/libxl_arm_acpi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tools/libxl/libxl_arm_acpi.c b/tools/libxl/libxl_arm_acpi.c
index db113db..f61aec6 100644
--- a/tools/libxl/libxl_arm_acpi.c
+++ b/tools/libxl/libxl_arm_acpi.c
@@ -73,6 +73,8 @@ static int libxl__estimate_madt_size(libxl__gc *gc,
{
int rc = 0;
+ *size = 0;
+
switch (info->arch_arm.gic_version) {
case LIBXL_GIC_VERSION_V2:
*size = sizeof(struct acpi_table_madt) +
--
2.7.4
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2017-05-16 10:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-16 10:23 Andrii Anisov [this message]
2017-05-16 10:59 ` [[PATCH]] libxl/arm: Fix ARM build Andrii Anisov
2017-05-16 11:03 ` Wei Liu
2017-05-16 11:06 ` Wei Liu
2017-05-16 15:14 ` Andrii Anisov
2017-05-16 15:27 ` Wei Liu
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=1494930198-3804-1-git-send-email-andrii.anisov@gmail.com \
--to=andrii.anisov@gmail.com \
--cc=andrii_anisov@epam.com \
--cc=julien.grall@arm.com \
--cc=xen-devel@lists.xenproject.org \
/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).