[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT/MUSL PATCH 06/19] Add patch to rename __unused field to pad



wip: This patch renames __unused in arch/x86_64/bits/stat.h to pad
since __unused is a keyword in Unikraft.

Signed-off-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
---
 patches/0007-remove-struct-__unused-to-pad.patch | 26 ++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 patches/0007-remove-struct-__unused-to-pad.patch

diff --git a/patches/0007-remove-struct-__unused-to-pad.patch 
b/patches/0007-remove-struct-__unused-to-pad.patch
new file mode 100644
index 0000000..f84a806
--- /dev/null
+++ b/patches/0007-remove-struct-__unused-to-pad.patch
@@ -0,0 +1,26 @@
+From ba42fab2b397bdfddc49d1244874b1ec1633e3ac Mon Sep 17 00:00:00 2001
+From: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
+Date: Fri, 11 Oct 2019 15:49:15 +0200
+Subject: [MUSL] [PATCH] Remove struct field __unused to pad
+
+The field __unused is a keyword used by Unikraft.
+
+Signed-off-by: Gaulthier Gain <gaulthier.gain@xxxxxxxxx>
+---
+ arch/x86_64/bits/stat.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/arch/x86_64/bits/stat.h b/arch/x86_64/bits/stat.h
+index 081237c..e66b315 100644
+--- a/arch/x86_64/bits/stat.h
++++ b/arch/x86_64/bits/stat.h
+@@ -18,5 +18,5 @@ struct stat {
+       struct timespec st_atim;
+       struct timespec st_mtim;
+       struct timespec st_ctim;
+-      long __unused[3];
++      long pad[3];
+ };
+-- 
+2.11.0
+
-- 
2.11.0


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.