kumquat-buildroot/package/xen/0002-tools-blktap2-vhd-Remove-unused-struct-stat-stats.patch
Alistair Francis 66a6cc750a package/xen: Update to version 4.8.1
Update Xen to version 4.8.1 and update the patches to allow Xen
hypervisor and Xen tools to build.

The patches applied were re-aranged a little bit. Patches 2, 3 and 4
have been accepted by upstream Xen and won't be required in future
releases.

Patch 1 (previously patch 2) is still required and was moved to patch 1
to better reflect it's status.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-04-12 21:06:47 +02:00

31 lines
1016 B
Diff

From 341c75bf4661aa0b5411d5dcc6334ab22e0bb158 Mon Sep 17 00:00:00 2001
From: Alistair Francis <alistair.francis@xilinx.com>
Date: Tue, 20 Dec 2016 11:46:58 -0800
Subject: [PATCH] tools/blktap2/vhd: Remove unused struct stat stats
The unsued variable 'struct stat stats' causes build errors in some
situations. As it isn't used just remove it.
Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
---
tools/blktap2/vhd/lib/libvhd-journal.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/blktap2/vhd/lib/libvhd-journal.c b/tools/blktap2/vhd/lib/libvhd-journal.c
index 26e26e7..862890f 100644
--- a/tools/blktap2/vhd/lib/libvhd-journal.c
+++ b/tools/blktap2/vhd/lib/libvhd-journal.c
@@ -1260,7 +1260,6 @@ vhd_journal_create(vhd_journal_t *j, const char *file, const char *jfile)
int i, err;
size_t size;
off_t off;
- struct stat stats;
memset(j, 0, sizeof(vhd_journal_t));
j->jfd = -1;
--
2.7.4