[LU-13557] LU-11023 (quota pools) breaks building with gcc9 Created: 14/May/20  Updated: 27/May/20  Resolved: 27/May/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Upstream
Fix Version/s: Lustre 2.14.0

Type: Bug Priority: Minor
Reporter: Alex Zhuravlev Assignee: Alex Zhuravlev
Resolution: Fixed Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

gcc9 fails to build with errors like this:

In file included from /home/lustre/master-mine/lustre/quota/qmt_entry.c:33:
/home/lustre/master-mine/lustre/quota/qmt_entry.c: In function ‘qmt_seed_glbe_all’:
/home/lustre/master-mine/lustre/quota/qmt_internal.h:461:12: error: inlining failed in call to always_inline ‘qmt_sarr_get_idx’: function body not available
  461 | inline int qmt_sarr_get_idx(struct qmt_pool_info *qpi, int arr_idx);
      |            ^~~~~~~~~~~~~~~~
/home/lustre/master-mine/lustre/quota/qmt_entry.c:1089:10: note: called from here
 1089 |    idx = qmt_sarr_get_idx(qpi, j);
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
 


 Comments   
Comment by Gerrit Updater [ 14/May/20 ]

Alex Zhuravlev (bzzz@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/38595
Subject: LU-13557 quota: remove inline declarations
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8952f0e19fa695cf01c3801bcbcce0b72d0179ae

Comment by Gerrit Updater [ 27/May/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/38595/
Subject: LU-13557 quota: remove inline declarations
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: c6249b88a2adf2b4f0d661c4286812e9eae0c18a

Comment by Peter Jones [ 27/May/20 ]

Landed for 2.14

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