Whamcloud - gitweb
LU-12705 build: fix building fail against Power9 little endian 07/36007/5
authorGu Zheng <gzheng@ddn.com>
Fri, 30 Aug 2019 07:27:30 +0000 (03:27 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 16 Sep 2019 23:00:54 +0000 (23:00 +0000)
commit4eddf36ac3607c66c172668b30eb5dcf921e3de4
tree28e2a1d7bda92fcf3a71ca10aaf119ab03d68fbe
parent4d8bc239c2c30a47e8833cf23db6ccd39ff61705
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.

Test-Parameters: trivial
Change-Id: I2e8569f4ac14f7d328a29d153ff57c7834cabc46
Signed-off-by: Gu Zheng <gzheng@ddn.com>
Reviewed-on: https://review.whamcloud.com/36007
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.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