projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
013b855
)
xen/arm: Correctly define size_t
author
Julien Grall
<julien.grall@linaro.org>
Mon, 17 Mar 2014 14:05:53 +0000
(14:05 +0000)
committer
Ian Campbell
<ian.campbell@citrix.com>
Fri, 21 Mar 2014 11:10:12 +0000
(11:10 +0000)
Flask code use %zu to print size_t variable. On ARM, size_t always defined
to unsigned long which make ARM build failed.
Fix it by using __SIZE_TYPE__.
Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
xen/include/asm-arm/types.h
patch
|
blob
|
history
diff --git
a/xen/include/asm-arm/types.h
b/xen/include/asm-arm/types.h
index 6875a620a20663e5db82ce1e8fa7ad3635466b3e..183f3e073351cc56b51f928216a8f1ab79d43207 100644
(file)
--- a/
xen/include/asm-arm/types.h
+++ b/
xen/include/asm-arm/types.h
@@
-55,7
+55,11
@@
typedef u64 register_t;
#define PRIregister "lx"
#endif
+#if defined(__SIZE_TYPE__)
+typedef __SIZE_TYPE__ size_t;
+#else
typedef unsigned long size_t;
+#endif
typedef char bool_t;
#define test_and_set_bool(b) xchg(&(b), 1)