Whamcloud - gitweb
LU-12705 build: fix building fail against Power9 little endian 07/36207/4
authorGu Zheng <gzheng@ddn.com>
Fri, 30 Aug 2019 07:27:30 +0000 (03:27 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 23 Sep 2019 08:43:56 +0000 (08:43 +0000)
commit45f9e02c2fa07d9a94228990cf87d460241d5e01
treec33496e2e57926f0493723280db6ced2967bacd4
parent38e83f124a41b633da02073b76cf20495bef3919
LU-12705 build: fix building fail against Power9 little endian

We use "%ll[dux]" for __u64 variable as an input/output modifier,
this may cause building error on some architectures which use "long"
for 64-bit types, for example, Power9 little endian.
Here add necessary typecasting (long long/unsigned long long) to
make the build correct.

Lustre-change: https://review.whamcloud.com/36007
Lustre-commit: 4eddf36ac3607c66c172668b30eb5dcf921e3de4

Test-Parameters: trivial
Change-Id: I2e8569f4ac14f7d328a29d153ff57c7834cabc46
Signed-off-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/36207
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/utils/lfs.c
lustre/utils/lhsmtool_posix.c
lustre/utils/liblustreapi.c
lustre/utils/ll_decode_filter_fid.c
lustre/utils/ll_decode_linkea.c
lustre/utils/llsom_sync.c
lustre/utils/obd.c