From c18cc8c58a24fede59b6410d7865056a837ed89e Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Tue, 18 Apr 2017 20:53:00 -0600 Subject: [PATCH] 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 --- lustre/utils/lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 1.8.3.1