[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] xen/arm: Correctly define size_t
commit be5d66adb4bf2fc750e910cfa9b14b0701eae5fc Author: Julien Grall <julien.grall@xxxxxxxxxx> AuthorDate: Mon Mar 17 14:05:53 2014 +0000 Commit: Ian Campbell <ian.campbell@xxxxxxxxxx> CommitDate: Fri Mar 21 11:10:12 2014 +0000 xen/arm: Correctly define size_t 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@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- xen/include/asm-arm/types.h | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/xen/include/asm-arm/types.h b/xen/include/asm-arm/types.h index 6875a62..183f3e0 100644 --- 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) -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |