From: Andreas Dilger Date: Wed, 19 Apr 2017 02:53:00 +0000 (-0600) Subject: LU-9354 utils: fix lfs.c compile for PPC X-Git-Tag: 2.9.57~59 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F27%2F26727%2F2;p=fs%2Flustre-release.git LU-9354 utils: fix lfs.c compile for PPC Fix the lfs_setstripe_args parameter to use "unsigned long long" for lsa_comp_end so that when passed to llapi_parse_size() it is the correct type. PPC annoyingly uses "unsigned long" for __u64 while most other architectures use "unsigned long long". Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: I27b724d5eab5f4669bde1f5fb44c75a1051ba7bd Reviewed-on: https://review.whamcloud.com/26727 Tested-by: Jenkins Reviewed-by: Minh Diep Tested-by: Maloo Reviewed-by: Bob Glossman Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index c262cc1..63194f3 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -1048,7 +1048,7 @@ static int verify_pool_name(char *prog_name, char *pool_name) } struct lfs_setstripe_args { - __u64 lsa_comp_end; + unsigned long long lsa_comp_end; unsigned long long lsa_stripe_size; int lsa_stripe_count; int lsa_stripe_off;