[LU-14865] ppc64le build failure: llog_reader.c:887:9: error: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' [-Werror=format=] Created: 20/Jul/21  Updated: 23/Aug/22  Resolved: 18/Aug/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.12.7, Lustre 2.15.0
Fix Version/s: Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: Gian-Carlo Defazio Assignee: Gian-Carlo Defazio
Resolution: Fixed Votes: 0
Labels: LTS12, llnl
Environment:

TOSS 3.7.9 (RHEL 7.9) power pc


Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

When building our local branch, which is based on v2_12_7, the ppc64le build fails due to a type error:

llog_reader.c:887:9: error: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type '__u64' [-Werror=format=]

This is due to a printf call that uses %llu whereas __le64_to_cpu returns a __u64. Elsewhere in the same file the return value of __le64_to_cpu is cast as necessary to match the print formatting, including to an unsigned long long.



 Comments   
Comment by Gerrit Updater [ 20/Jul/21 ]

Gian-Carlo DeFazio (defazio1@llnl.gov) uploaded a new patch: https://review.whamcloud.com/44346
Subject: LU-14865 utils: llog_reader.c printf type mismatch
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 6a30d1d6e0d9a0f20bedfb50a18962bdc753b2cb

Comment by Gian-Carlo Defazio [ 20/Jul/21 ]

For my notes, my local ticket is TOSS-5254

Comment by Gerrit Updater [ 18/Aug/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44346/
Subject: LU-14865 utils: llog_reader.c printf type mismatch
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 14b8276e06d6f4e3bfe785df1165458555e406f3

Comment by Peter Jones [ 18/Aug/21 ]

Landed for 2.15

Comment by Gerrit Updater [ 23/Aug/22 ]

"Etienne AUJAMES <eaujames@ddn.com>" uploaded a new patch: https://review.whamcloud.com/48305
Subject: LU-14865 utils: llog_reader.c printf type mismatch
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: 17bac0423afb25ed0d771dd17e677cf036522627

Generated at Sat Feb 10 03:13:27 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.